Txt2tags marked files are divided in 3 areas. Each area have its own rules and purpose. They are:
All areas are optional. You can write a txt2tags document with just headers (such as our first example), or a document with no headers or settings.
The areas are delimited by special rules, which will be seen in detail on the next chapter. For now, this is a representation of the areas on a document:
____________ | | | HEADERS | 1. First, the Headers | | | CONFIG | 2. Then the Settings | | | BODY | 3. And finally the Document Body, | | | ... | which goes until the end | ... | |____________|
In short, this is how the areas are defined:
Headers | First 3 lines of the file, or the first line blank for No Headers. |
Config | Begins right after the Header (4th or 2nd line) and ends when the Body Area starts. |
Body | The first valid text line (not comment or setting) after the Header Area. |
My nice doc Title Mr. John Doe Last Updated: %%mtime(%c) %!target : html %!style : fancy.css %!encoding: UTF-8 %!options : --toc --enum-title Hi! This is my test document. Its content will end here.