Welcome to the txt2tags
sample file.
Here you have examples and a brief explanation of all marks.
The first 3 lines of the this file are used as headers, on the following format:
line1: document title line2: author name, email line3: date, version
Lines with balanced equal signs = around are titles.
We have two sets of fonts:
The text marks for beautifiers are simple, just as you type on a plain text email message.
We use double *, / and _ to represent bold, italic and underline.
The bold italic style is also supported.
We can put a code sample or other preformatted text:
here is preformatted //marks// are **not** `interpreted`
And also, it's easy to put a one line preformatted text:
prompt$ ls /etc
Or use preformatted
inside sentences.
Special entities like an email (duh@somewhere.com) or an URL (http://www.duh.com) are recognized automagically, as long as the horizontal line:
You can also specify an explicit link with label.
And remember,
A TAB in front of the line does a quotation.Nice.More TABs increase the quote depth (if allowed).
A list of items is natural, just putting a dash or a plus at the begining of the line.
The dash is the default list identifier. For sublists, just add spaces at the beginning of the line. More spaces, more sublists.
The same rules as the plain list, just a different identifier (plus).
The list identifier is an equal sign, and the colon separate the definition term to the definition definition.
Tables are supported in most of the targets. Where not supported, they're treated as preformatted text.
Just use pipes to compose table rows and cells. Double pipe at the line begining identify a table title row. Natural spaces specify each cell alignment.
first title | other title | another one |
---|---|---|
cell 1.1 | cell 1.2 | cell 1.3 |
cell 2.1 | cell 2.2 | cell 2.3 |
Without the last pipe, no border:
first title | other title | another one |
---|---|---|
cell 1.1 | cell 1.2 | cell 1.3 |
cell 2.1 | cell 2.2 | cell 2.3 |
Because things were too simple.
The image mark is as simple as it can be: [filename]
.
And as a gift, a special %%date
handy macro that tell us the current date.
So today is 20031130 on the ISO yyyymmdd
format.
You can also specify the date format with the %? flags,
as %%date(%m-%d-%Y)
which gives: 11-30-2003.
That's all.