This repository has been archived by the owner on Dec 12, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsample.html
378 lines (325 loc) · 8.24 KB
/
sample.html
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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<meta name="author" content="Aurelio Jargas www.aurelio.net">
<META NAME="generator" CONTENT="http://txt2tags.org">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<LINK REL="stylesheet" TYPE="text/css" HREF="inc/site.css">
<TITLE>txt2tags sample</TITLE>
<link rel="icon" type="image/png" href="/favicon.png">
</HEAD>
<BODY id="sample">
<DIV CLASS="header" ID="header">
<h1><a href="/">txt2tags</a></h1>
<H3>Comprehensive samples</H3>
</DIV>
<DIV CLASS="body" ID="body">
<div id="sidebar">
Hot
<ul>
<li id="menuonline"><a href="./online.php">Txt2tags Online</a></li>
<li id="menumarkup"><a href="./markup.html">Markup Demo</a></li>
</ul>
About
<ul>
<!-- <li id="menuhome"><a href="/">Home</a></li> -->
<li id="menufeatures"><a href="./features.html">Features</a></li>
<li id="menusample"><a href="./sample.html">Example</a></li>
<li id="menushots"><a href="./shots.html">Screenshots</a></li>
<li id="menudocs"><a href="./docs.html">Documentation</a></li>
<li id="menutips"><a href="./tips.html">Tips & Tricks</a></li>
<!--
<li id="menuoldnews"><a href="./misc/oldnews.html">Old News</a></li>
-->
</ul>
Code
<ul>
<li id="menudownload"><a href="./download.html">Download</a></li>
<li id="menuchangelog"><a href="./changelog.html">Changelog</a></li>
<li id="menutools"><a href="./tools.html">Tools</a></li>
<li><a href="https://github.com/txt2tags/txt2tags">GitHub</a></li>
</ul>
Community
<ul>
<li id="menuwiki"><a href="http://wiki.txt2tags.org">Wiki</a></li>
<li id="menublog"><a href="http://txt2tags.wordpress.com">Blog</a></li>
<li id="menuteam"><a href="./team/index.html">The Team</a></li>
<li id="menuchildren"><a href="./children.html">The Children</a></li>
<li id="menucomments"><a href="http://txt2tags.wordpress.com/user-comments/">User Comments</a></li>
<li id="menuart"><a href="./art.html">Artwork</a></li>
</ul>
Social
<ul>
<li id="menuml"><a href="./ml.html">Mailing List</a></li>
<li><a href="http://www.facebook.com/pages/txt2tags/335201827209">Facebook</a></li>
<!-- <li><a href="http://www.orkut.com.br/Main#Community?cmm=87935">Orkut</a></li> -->
</ul>
<P>
<A HREF="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=verde%40aurelio%2enet&item_name=txt2tags%20donation&no_shipping=1&return=http%3a%2f%2faurelio%2enet%2fdonate%2dthanks%2ehtml&cn=&tax=0&currency_code=USD&bn=PP%2dDonationsBF&charset=UTF%2d8"><IMG ALIGN="middle" SRC="../img/donate.png" BORDER="0" alt="DONATE"></A>
</P>
</div>
<H1>Introduction</H1>
<P>
Welcome to the txt2tags sample file (<A HREF="sample.t2t">sources</A>).
</P>
<P>
Here you have examples and a brief explanation of all
marks.
</P>
<P>
The first 3 lines of the this file are used as headers,
on the following format:
</P>
<PRE>
line1: document title
line2: author name, email
line3: date, version
</PRE>
<P>
Lines with balanced equal signs = around are titles.
</P>
<H1>Fonts and Beautifiers</H1>
<P>
We have two sets of fonts:
</P>
<P>
The NORMAL type that can be improved with beautifiers.
</P>
<P>
The TYPEWRITER type that uses monospaced font for
pre-formatted text.
</P>
<P>
We will now enter on a subtitle...
</P>
<H2>Beautifiers</H2>
<P>
The text marks for beautifiers are simple, just as you
type on a plain text email message.
</P>
<P>
We use double *, /, - and _ to represent <B>bold</B>,
<I>italic</I>, <S>strike</S> and <U>underline</U>.
</P>
<P>
The <B><I>bold italic</I></B> style is also supported as a
combination.
</P>
<H2>Pre-Formatted Text</H2>
<P>
We can put a code sample or other pre-formatted text:
</P>
<PRE>
here is pre-formatted
//marks// are **not** ``interpreted``
</PRE>
<P>
And also, it's easy to put a one line pre-formatted
text:
</P>
<PRE>
prompt$ ls /etc
</PRE>
<P>
Or use <CODE>pre-formatted</CODE> inside sentences.
</P>
<H2>More Cosmetics</H2>
<P>
Special entities like email (<A HREF="mailto:[email protected]">[email protected]</A>) and
URL (<A HREF="http://www.duh.com">http://www.duh.com</A>) are detected automagically,
as long as the horizontal line:
</P>
<HR NOSHADE SIZE=1>
<P>
^ thin or large v
</P>
<HR NOSHADE SIZE=5>
<P>
You can also specify an <A HREF="http://duh.org">explicit link</A>
with label.
</P>
<P>
And remember,
</P>
<BLOCKQUOTE>
A TAB in front of the line does a quotation.
<BLOCKQUOTE>
More TABs, more depth (if allowed).
</BLOCKQUOTE>
</BLOCKQUOTE>
<P>
Nice.
</P>
<H1>Lists</H1>
<P>
A list of items is natural, just putting a <B>dash</B> or
a <B>plus</B> at the beginning of the line.
</P>
<H2>Plain List</H2>
<P>
The dash is the default list identifier. For sublists,
just add <B>spaces</B> at the beginning of the line. More
spaces, more sublists.
</P>
<UL>
<LI>Earth
<UL>
<LI>America
<UL>
<LI>South America
<UL>
<LI>Brazil
<UL>
<LI>How deep can I go?
</UL>
</UL>
</UL>
<LI>Europe
<UL>
<LI>Lots of countries
</UL>
</UL>
<LI>Mars
<UL>
<LI>Who knows?
</UL>
</UL>
<P>
The list ends with <B>two</B> consecutive blank lines.
</P>
<H2>Numbered List</H2>
<P>
The same rules as the plain list, just a different
identifier (plus).
</P>
<OL>
<LI>one
<LI>two
<LI>three
<UL>
<LI>mixed lists!
<LI>what a mess
<OL>
<LI>counting again
<LI>...
</OL>
</UL>
<LI>four
</OL>
<H2>Definition List</H2>
<P>
The definition list identifier is a colon, followed by
the term. The term contents is placed on the next line.
</P>
<DL>
<DT>orange</DT><DD>
a yellow fruit
<DT>apple</DT><DD>
a green or red fruit
<DT>other fruits</DT><DD>
<UL>
<LI>wee!
<LI>mixing lists
<OL>
<LI>again!
<LI>and again!
</OL>
</UL>
</DL>
<H1>Tables</H1>
<P>
Use pipes to compose table rows and cells.
Double pipe at the line beginning starts a heading row.
Natural spaces specify each cell alignment.
</P>
<TABLE ALIGN="center" BORDER="1">
<TR>
<TH>heading 1</TH>
<TH>heading 2</TH>
<TH>heading 3</TH>
</TR>
<TR>
<TD>cell 1.1</TD>
<TD ALIGN="center">cell 1.2</TD>
<TD ALIGN="right">cell 1.3</TD>
</TR>
<TR>
<TD>cell 2.1</TD>
<TD ALIGN="center">cell 2.2</TD>
<TD ALIGN="right">cell 2.3</TD>
</TR>
</TABLE>
<P>
Without the last pipe, no border:
</P>
<TABLE ALIGN="center">
<TR>
<TH>heading 1</TH>
<TH>heading 2</TH>
<TH>heading 3</TH>
</TR>
<TR>
<TD>cell 1.1</TD>
<TD ALIGN="center">cell 1.2</TD>
<TD ALIGN="right">cell 1.3</TD>
</TR>
<TR>
<TD>cell 2.1</TD>
<TD ALIGN="center">cell 2.2</TD>
<TD ALIGN="right">cell 2.3</TD>
</TR>
</TABLE>
<H1>Special Entities</H1>
<P>
Because things were too simple.
</P>
<H2>Images</H2>
<P>
The image mark is as simple as it can be: <CODE>[filename]</CODE>.
</P>
<center><IMG ALIGN="middle" SRC="img/photo.jpg" BORDER="0" ALT=""></center>
<UL>
<LI>The filename must end in PNG, JPG, GIF, or similar.
<LI>No spaces inside the brackets!
</UL>
<H2>Other</H2>
<P>
The handy <CODE>%%date</CODE> macro expands to the current date.
</P>
<P>
So today is 20120111 on the ISO <CODE>YYYYMMDD</CODE> format.
</P>
<P>
You can also specify the date format with the %? flags,
as <CODE>%%date(%m-%d-%Y)</CODE> which gives: 01-11-2012.
</P>
<P>
That's all for now.
</P>
<HR NOSHADE SIZE=1>
</div><div id="footer">
<P>
<IMG ALIGN="middle" SRC="../img/t2tpowered-white.png" BORDER="0" ALT="">
</P>
<a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"></a>
<P>
Last modified on 11 January 2012 at 15:40
(<A HREF="sample-full.t2t">See sources</A>,
<A HREF="http://validator.w3.org/check?uri=referer">Validate HTML</A>)
</P>
</div><div id="fake">
<!-- Google Analytics code -->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-280222-14']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</DIV>
<!-- html code generated by txt2tags 2.6.641 (http://txt2tags.org) -->
<!-- cmdline: txt2tags sample-full.t2t -->
</BODY></HTML>