[page hoglet - the easy way to write documentation] [t1]hoglet - the easy way to write documentation[t1] [section] Everyone knows that writing documentation for software (or anything) is a tedious job, especially when it is written in HTML. It's error prone, time consuming and difficult to ensure consistency throughout the documentation tree. hoglet aims to make the writing of documentation (especially software documentation) easier by allowing a text document to be "marked up" in a similar way to HTML/XML. The hoglet syntax is simpler, more intuitive than HTML/XML and is easy to learn. For example, you want to include some java source code in your documentation, you'd like it to be nicely formatted (correctly indented), maybe have line numbers included and highlight java keywords. Now to do this in HTML is just hell and would take forever, but with hoglet it's as simple as: [hoglet] \[java linenums=y] public class MyClass { public static void main (String argv\\[]) { System.out.println ("Hello World"); } } \[java] [hoglet] Which, when run through hoglet, produces: [java linenums=y] public class MyClass { public static void main (String argv\[]) { System.out.println ("Hello World"); } } [java] See also: [link using-hoglet.html]Using hoglet[link], [link index.txt]hoglet Source for this page[link] [/section] [t2]hoglet features[t2] [section] hoglet has the following features: [l] [i]Easily extensible. You can easily define your own tags, those tags map to a [javadoc hoglet,org.hoglet.TagHandler]TagHandler[javadoc] which is used to produce/process the content.[i] [i]Simple, consistent and configurable syntax. In hoglet the verbosity of XML markup is removed. Tag definition is simple and easy. The start and end tag are the same, i.e. \[java] (although \[/java] can be used for the end tag if required). End tags are optional, if the start tag is closed with a /.[i] [i]Each tag can have a number of options associated with it. These are basically name/value pairs, however if no name is provided then the name is defaulted to an integer (starting at 1). i.e. [hoglet] \[javadoc hoglet,org.hoglet.TagHandler /] [hoglet] means there are 2 options numbered 1 and 2.[i] [i]Tags can be nested, i.e. [hoglet] \[java]\[javadoc java,java.lang.System]System\[javadoc].out.println ("Hello World");\[java] [hoglet] [i] [i]The delimiters in hoglet can be configured. For example it is possible to configure hoglet to have tag definitions such as: *java%java#java.lang.System&! Not that this is recommended![i] [i]Can be integrated easily with other markup languages, i.e. HTML. This is important since it's not always desirable to solely rely on hoglet tags to markup the document.[i] [i]Tag Handlers have access to the child tags within the tag they are processing. This allows them to process the tags in the way they see fit. It is also possible for handlers to get access to the tags' parent tag (if present)[i] [l] See also: [link tags.html]Tags[link], [link core-tag-handlers.html]Core Tag Handlers[link]. [/section] [t2]How does hoglet compare to a wiki?[t2] [section] Wikis are great for just writing text, the trouble is if you want to do anything more than just regular expression replacements then wikis don't really cut it. Also, wikis tend to have the formatting tied closely to the overall wiki architecture (not always however). Wiki formatters also tend to have confused syntax that isn't easily extensible. [/section] [t2]How does hoglet compare to Radeox[t2] [section] I looked into [link http://radeox.org]Radeox[link] early on and it seemed (at first glance) to do everything I needed. Trouble is, as I examined further it seemed to be dependent upon regular expressions and had a fixed format as a result. However, I wanted something that was flexible enough to integrate with regular HTML and could be configured to integrate into other text files. [/section] [t2]Limitations[t2] [section] Of course hoglet also has a number of limitations, they are: [l] [i]It's not possible to have the a tag nested within itself, i.e. [hoglet incendtags=y] \[java]\[java]\[java]\[java] [hoglet] would NOT lead to nesting since, for simplicity, hoglet end tags are the same as start tags.[i] [l] [/section] [/page]