1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182
|
header-line1: document title
header-line2: author name, email
header-line3: date, version
txt2tags sample
% Comment Line ALERT TODO FIXME
%%%
Comment Block
%%%
%!--includeconf: config.t2t
% disabled here because there is no external file
%!preproc: 'JUST A TEST' ' '
%!postproc: '(?i)(<body)' '\1 id="shots"'
%!postproc: '(?i)(</title>)' ' shots\1'
%!--include: menu.t2t
= Title 1 =
== My Subtitle 1 ==[some definition]
Some examples:
- A paragraph with **bold**, //italic// and --strike--.
- You can even __underline your docs__!
- And use **//bold and italic//**
- or //**italic and bold**//
Here is a nice pic: [img/t2tpowered.png].
- And a [link to a cool website http://txt2tags.sf.net]!
- A table :
|| Name | Age | Gender |
| John | 33 | Male |
| Mary | 19 | Female |
``` A verbatim line
And it's working for ``special code`` like this.
```
A verbatim block
```
Raw strings:
""" A raw line
"""
A raw block
"""
Tagged strings:
''' A tagged line
'''
A tagged block
'''
And remember,
A TAB in front of the line does a quotation.
More TABs, more depth (if allowed).
Horizontal lines:
--------------------------------------------------------
^ thin or large v
========================================================
== My Subtitle 2 ==
Lorem ipsum etc
Lorem ipsum etc Lorem ipsum etc
- Test d'écriture avec des accents à la française. Ça marche ou pas ?
== My Subtitle 3 ==
Lorem ipsum etc
Lorem ipsum etc
Here is a direct link: http://kde.org
- Another boring part...
=== My Subsubtitle 1 ===
//It's a level 3 header//
- list 1
- list 2
- list 2b
- list 3
=== My Subsubtitle 2 ===
//It's another level 3 header//
+ ordered list 1
+ list 2
+ list 2B
+ list 2C
+ list 3
== My Subtitle 4 ==
The handy ``%%date`` macro expands to the current date.
So today is %%date on the ISO ``YYYYMMDD`` format.
You can also specify the date format with the %? flags,
as ``%%date(%m-%d-%Y)`` which gives: %%date(%m-%d-%Y).
= Images =
The image mark is as simple as it can be: ``[filename]``.
[img/photo.jpg]
And with some targets the image is linkable :
[[img/photo.jpg] http://www.txt2tags.org]
= Tables =
Use pipes to compose table rows and cells.
Double pipe at the line beginning starts a heading row.
Natural spaces specify each cell alignment.
| cell 1.1 | cell 1.2 | cell 1.3 |
| cell 2.1 | cell 2.2 | cell 2.3 |
| cell 3.1 | cell 3.2 | cell 3.3 |
|| heading 1 | heading 2 | heading 3 |
| cell 1.1 | cell 1.2 | cell 1.3 |
| cell 2.1 | cell 2.2 | cell 2.3 |
|_ heading 1 | cell 1.1 | cell 1.2 |
| heading 2 | cell 2.1 | cell 2.2 |
| heading 3 | cell 3.1 | cell 3.2 |
|/ heading | heading 1 | heading 2 |
| heading 1 | cell 1.1 | cell 1.2 |
| heading 2 | cell 2.1 | cell 2.2 |
Without the last pipe, no border:
| cell 1.1 | cell 1.2 | cell 1.3
| cell 2.1 | cell 2.2 | cell 2.3
| cell 3.1 | cell 3.2 | cell 3.3
|| heading 1 | heading 2 | heading 3
| cell 1.1 | cell 1.2 | cell 1.3
| cell 2.1 | cell 2.2 | cell 2.3
|_ heading 1 | cell 1.1 | cell 1.2
| heading 2 | cell 2.1 | cell 2.2
| heading 3 | cell 3.1 | cell 3.2
|/ heading | heading 1 | heading 2
| heading 1 | cell 1.1 | cell 1.2
| heading 2 | cell 2.1 | cell 2.2
= Other Title =
nothing to say here...
|