plugins: plugin loader redesign
[geany-mirror.git] / tests / ctags / sample.t2t
blob55e0217f16e4ae8e9d618e09982a58982fb79f2b
1 TXT2TAGS SAMPLE
2 Aurelio Jargas
3 %%mtime(%m/%d/%Y)
5 %!encoding: UTF-8
7 This text is before the introduction.
9 But it's OK.
11                   =  Introduction  =
13 Welcome to the txt2tags sample file.
15 Here you have examples and a brief explanation of all
16 marks.
18 The first 3 lines of this file are used as headers,
19 on the following format:
20 ```
21 line1: document title
22 line2: author name, email
23 line3: date, version
24 ```
26 Lines with balanced equal signs = around are titles.
28 % a secret comment!
29 %TODO link to program site http://txt2tags.org
32               =  Fonts and Beautifiers  =
34 We have two sets of fonts:
36 The NORMAL type that can be improved with beautifiers.
38 The TYPEWRITER type that uses monospaced font for
39 pre-formatted text.
41 We will now enter on a subtitle...
44                   ==  Beautifiers  ==
46 The text marks for beautifiers are simple, just as you
47 type on a plain text email message.
49 We use double *, /, - and _ to represent **bold**,
50 //italic//, --strike-- and __underline__.
52 The **//bold italic//** style is also supported as a
53 combination.
56               ==  Pre-Formatted Text  ==
58 We can put a code sample or other pre-formatted text:
59 ```
60   here    is     pre-formatted
61 //marks// are  **not**  ``interpreted``
62 ```
64 And also, it's easy to put a one line pre-formatted
65 text:
66 ``` prompt$ ls /etc
68 Or use ``pre-formatted`` inside sentences.
71                 ==  More Cosmetics  ==
73 Special entities like email (duh@somewhere.com) and
74 URL (http://www.duh.com) are detected automagically,
75 as long as the horizontal line:
77 --------------------------------------------------------
78 ^ thin or large v
79 ========================================================
81 You can also specify an [explicit link http://duh.org]
82 or an [explicit email duh@somewhere.com] with label.
84 And remember,
85         A TAB in front of the line does a quotation.
86                 More TABs, more depth (if allowed).
87 Nice.
90                       =  Lists  =
92 A list of items is natural, just putting a **dash** or
93 a **plus** at the beginning of the line.
96                   ==  Plain List  ==
98 The dash is the default list identifier. For sublists,
99 just add **spaces** at the beginning of the line. More
100 spaces, more sublists.
102 - Earth
103   - America
104     - South America
105       - Brazil
106         - How deep can I go?
107   - Europe
108     - Lots of countries
109 - Mars
110   - Who knows?
113 The list ends with **two** consecutive blank lines.
116                  ==  Numbered List  ==
118 The same rules as the plain list, just a different
119 identifier (plus).
121 + one
122 + two
123 + three
124   - mixed lists!
125   - what a mess
126     + counting again
127     + ...
128 + four
131                 ==  Definition List  ==
133 The definition list identifier is a colon, followed by
134 the term. The term contents is placed on the next line.
136 : orange
137   a yellow fruit
138 : apple
139   a green or red fruit
140 : other fruits
141   - wee!
142   - mixing lists
143     + again!
144     + and again!
147                      =  Tables  =
149 Use pipes to compose table rows and cells.
150 Double pipe at the line beginning starts a heading row.
151 Natural spaces specify each cell alignment.
153   | cell 1.1  |  cell 1.2   |   cell 1.3 |
154   | cell 2.1  |  cell 2.2   |   cell 2.3 |
155   | cell 3.1  |  cell 3.2   |   cell 3.3 |
157 || heading 1 |  heading 2  |  heading 3 |
158  | cell 1.1  |  cell 1.2   |   cell 1.3 |
159  | cell 2.1  |  cell 2.2   |   cell 2.3 |
161  |_ heading 1 |  cell 1.1   |   cell 1.2 |
162   | heading 2 |  cell 2.1   |   cell 2.2 |
163   | heading 3 |  cell 3.1   |   cell 3.2 |
165 |/ heading   |  heading 1  |  heading 2 |
166  | heading 1 |  cell 1.1   |   cell 1.2 |
167  | heading 2 |  cell 2.1   |   cell 2.2 |
169 Without the last pipe, no border:
171   | cell 1.1  |  cell 1.2   |   cell 1.3
172   | cell 2.1  |  cell 2.2   |   cell 2.3
173   | cell 3.1  |  cell 3.2   |   cell 3.3
175 || heading 1 |  heading 2  |  heading 3
176  | cell 1.1  |  cell 1.2   |   cell 1.3
177  | cell 2.1  |  cell 2.2   |   cell 2.3
179  |_ heading 1 |  cell 1.1   |   cell 1.2
180   | heading 2 |  cell 2.1   |   cell 2.2
181   | heading 3 |  cell 3.1   |   cell 3.2
183 |/ heading   |  heading 1  |  heading 2
184  | heading 1 |  cell 1.1   |   cell 1.2
185  | heading 2 |  cell 2.1   |   cell 2.2
187                 =  Special Entities  =
189 Because things were too simple.
192                     ==  Images  ==
194 The image mark is as simple as it can be: ``[filename]``.
196                       [img/photo.jpg]  
198 And with some targets the image is linkable :
200                       [[img/photo.jpg] http://www.txt2tags.org]  
202 - The filename must end in PNG, JPG, GIF, or similar.
203 - No spaces inside the brackets!
206                      ==  Other  ==
207 When the target needs, special chars like <, > and &
208 are escaped.
210 The handy ``%%date`` macro expands to the current date.
212 So today is %%date on the ISO ``YYYYMMDD`` format.
214 You can also specify the date format with the %? flags,
215 as ``%%date(%m-%d-%Y)`` which gives: %%date(%m-%d-%Y).
217 That's all for now.
219 -------------------------------------------------------
220 %%% TRANSLATOR: Uncomment and translate the next two lines
221 %Translated by John Smith.
222 %-------------------------------------------------------
223 [img/t2tpowered.png] ([%%infile %%infile])
225 % vim: tw=55