PageRenderTime 14ms CodeModel.GetById 2ms app.highlight 8ms RepoModel.GetById 1ms app.codeStats 0ms

/samples/sample.html

http://txt2tags.googlecode.com/
HTML | 429 lines | 373 code | 54 blank | 2 comment | 0 complexity | 4ae0e16caa3e03afa5f625279aec643f MD5 | raw file
  1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2<HTML>
  3<HEAD>
  4<META NAME="generator" CONTENT="http://txt2tags.org">
  5<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
  6<TITLE>TXT2TAGS SAMPLE</TITLE>
  7</HEAD><BODY BGCOLOR="white" TEXT="black">
  8<CENTER>
  9<H1>TXT2TAGS SAMPLE</H1>
 10<FONT SIZE="4"><I>Aurelio Jargas</I></FONT><BR>
 11<FONT SIZE="4">03/18/2013</FONT>
 12</CENTER>
 13
 14<P>
 15This text is before the introduction.
 16</P>
 17<P>
 18But it's OK.
 19</P>
 20
 21<H1>Introduction</H1>
 22
 23<P>
 24Welcome to the txt2tags sample file.
 25</P>
 26<P>
 27Here you have examples and a brief explanation of all
 28marks.
 29</P>
 30<P>
 31The first 3 lines of this file are used as headers,
 32on the following format:
 33</P>
 34
 35<PRE>
 36  line1: document title
 37  line2: author name, email
 38  line3: date, version
 39</PRE>
 40
 41<P>
 42Lines with balanced equal signs = around are titles.
 43</P>
 44
 45<H1>Fonts and Beautifiers</H1>
 46
 47<P>
 48We have two sets of fonts:
 49</P>
 50<P>
 51The NORMAL type that can be improved with beautifiers.
 52</P>
 53<P>
 54The TYPEWRITER type that uses monospaced font for
 55pre-formatted text.
 56</P>
 57<P>
 58We will now enter on a subtitle...
 59</P>
 60
 61<H2>Beautifiers</H2>
 62
 63<P>
 64The text marks for beautifiers are simple, just as you
 65type on a plain text email message.
 66</P>
 67<P>
 68We use double *, /, - and _ to represent <B>bold</B>,
 69<I>italic</I>, <S>strike</S> and <U>underline</U>.
 70</P>
 71<P>
 72The <B><I>bold italic</I></B> style is also supported as a
 73combination.
 74</P>
 75
 76<H2>Pre-Formatted Text</H2>
 77
 78<P>
 79We can put a code sample or other pre-formatted text:
 80</P>
 81
 82<PRE>
 83    here    is     pre-formatted
 84  //marks// are  **not**  ``interpreted``
 85</PRE>
 86
 87<P>
 88And also, it's easy to put a one line pre-formatted
 89text:
 90</P>
 91
 92<PRE>
 93  prompt$ ls /etc
 94</PRE>
 95
 96<P>
 97Or use <CODE>pre-formatted</CODE> inside sentences.
 98</P>
 99
100<H2>More Cosmetics</H2>
101
102<P>
103Special entities like email (<A HREF="mailto:duh@somewhere.com">duh@somewhere.com</A>) and
104URL (<A HREF="http://www.duh.com">http://www.duh.com</A>) are detected automagically,
105as long as the horizontal line:
106</P>
107
108<HR NOSHADE SIZE=1>
109
110<P>
111^ thin or large v
112</P>
113
114<HR NOSHADE SIZE=5>
115
116<P>
117You can also specify an <A HREF="http://duh.org">explicit link</A>
118or an <A HREF="mailto:duh@somewhere.com">explicit email</A> with label.
119</P>
120<P>
121And remember,
122</P>
123	<BLOCKQUOTE>
124	A TAB in front of the line does a quotation.
125		<BLOCKQUOTE>
126		More TABs, more depth (if allowed).
127		</BLOCKQUOTE>
128	</BLOCKQUOTE>
129<P>
130Nice.
131</P>
132
133<H1>Lists</H1>
134
135<P>
136A list of items is natural, just putting a <B>dash</B> or
137a <B>plus</B> at the beginning of the line.
138</P>
139
140<H2>Plain List</H2>
141
142<P>
143The dash is the default list identifier. For sublists,
144just add <B>spaces</B> at the beginning of the line. More
145spaces, more sublists.
146</P>
147
148<UL>
149<LI>Earth
150  <UL>
151  <LI>America
152    <UL>
153    <LI>South America
154      <UL>
155      <LI>Brazil
156        <UL>
157        <LI>How deep can I go?
158        </UL>
159      </UL>
160    </UL>
161  <LI>Europe
162    <UL>
163    <LI>Lots of countries
164    </UL>
165  </UL>
166<LI>Mars
167  <UL>
168  <LI>Who knows?
169  </UL>
170</UL>
171
172<P>
173The list ends with <B>two</B> consecutive blank lines.
174</P>
175
176<H2>Numbered List</H2>
177
178<P>
179The same rules as the plain list, just a different
180identifier (plus).
181</P>
182
183<OL>
184<LI>one
185<LI>two
186<LI>three
187  <UL>
188  <LI>mixed lists!
189  <LI>what a mess
190    <OL>
191    <LI>counting again
192    <LI>...
193    </OL>
194  </UL>
195<LI>four
196</OL>
197
198<H2>Definition List</H2>
199
200<P>
201The definition list identifier is a colon, followed by
202the term. The term contents is placed on the next line.
203</P>
204
205<DL>
206<DT>orange</DT><DD>
207  a yellow fruit
208<DT>apple</DT><DD>
209  a green or red fruit
210<DT>other fruits</DT><DD>
211  <UL>
212  <LI>wee!
213  <LI>mixing lists
214    <OL>
215    <LI>again!
216    <LI>and again!
217    </OL>
218  </UL>
219</DL>
220
221<H1>Tables</H1>
222
223<P>
224Use pipes to compose table rows and cells.
225Double pipe at the line beginning starts a heading row.
226Natural spaces specify each cell alignment.
227</P>
228
229<TABLE ALIGN="center" BORDER="1" CELLPADDING="4">
230<TR>
231<TD>cell 1.1</TD>
232<TD ALIGN="center">cell 1.2</TD>
233<TD ALIGN="right">cell 1.3</TD>
234</TR>
235<TR>
236<TD>cell 2.1</TD>
237<TD ALIGN="center">cell 2.2</TD>
238<TD ALIGN="right">cell 2.3</TD>
239</TR>
240<TR>
241<TD>cell 3.1</TD>
242<TD ALIGN="center">cell 3.2</TD>
243<TD ALIGN="right">cell 3.3</TD>
244</TR>
245</TABLE>
246
247<TABLE BORDER="1" CELLPADDING="4">
248<TR>
249<TH>heading 1</TH>
250<TH>heading 2</TH>
251<TH>heading 3</TH>
252</TR>
253<TR>
254<TD>cell 1.1</TD>
255<TD ALIGN="center">cell 1.2</TD>
256<TD ALIGN="right">cell 1.3</TD>
257</TR>
258<TR>
259<TD>cell 2.1</TD>
260<TD ALIGN="center">cell 2.2</TD>
261<TD ALIGN="right">cell 2.3</TD>
262</TR>
263</TABLE>
264
265<TABLE ALIGN="center" BORDER="1" CELLPADDING="4">
266<TR>
267<TH>heading 1</TH>
268<TD ALIGN="center">cell 1.1</TD>
269<TD ALIGN="right">cell 1.2</TD>
270</TR>
271<TR>
272<TH>heading 2</TH>
273<TD ALIGN="center">cell 2.1</TD>
274<TD ALIGN="right">cell 2.2</TD>
275</TR>
276<TR>
277<TH>heading 3</TH>
278<TD ALIGN="center">cell 3.1</TD>
279<TD ALIGN="right">cell 3.2</TD>
280</TR>
281</TABLE>
282
283<TABLE BORDER="1" CELLPADDING="4">
284<TR>
285<TH>heading</TH>
286<TH>heading 1</TH>
287<TH>heading 2</TH>
288</TR>
289<TR>
290<TH>heading 1</TH>
291<TD ALIGN="center">cell 1.1</TD>
292<TD ALIGN="right">cell 1.2</TD>
293</TR>
294<TR>
295<TH>heading 2</TH>
296<TD ALIGN="center">cell 2.1</TD>
297<TD ALIGN="right">cell 2.2</TD>
298</TR>
299</TABLE>
300
301<P>
302Without the last pipe, no border:
303</P>
304
305<TABLE ALIGN="center" CELLPADDING="4">
306<TR>
307<TD>cell 1.1</TD>
308<TD ALIGN="center">cell 1.2</TD>
309<TD ALIGN="right">cell 1.3</TD>
310</TR>
311<TR>
312<TD>cell 2.1</TD>
313<TD ALIGN="center">cell 2.2</TD>
314<TD ALIGN="right">cell 2.3</TD>
315</TR>
316<TR>
317<TD>cell 3.1</TD>
318<TD ALIGN="center">cell 3.2</TD>
319<TD ALIGN="right">cell 3.3</TD>
320</TR>
321</TABLE>
322
323<TABLE CELLPADDING="4">
324<TR>
325<TH>heading 1</TH>
326<TH>heading 2</TH>
327<TH>heading 3</TH>
328</TR>
329<TR>
330<TD>cell 1.1</TD>
331<TD ALIGN="center">cell 1.2</TD>
332<TD ALIGN="right">cell 1.3</TD>
333</TR>
334<TR>
335<TD>cell 2.1</TD>
336<TD ALIGN="center">cell 2.2</TD>
337<TD ALIGN="right">cell 2.3</TD>
338</TR>
339</TABLE>
340
341<TABLE ALIGN="center" CELLPADDING="4">
342<TR>
343<TH>heading 1</TH>
344<TD ALIGN="center">cell 1.1</TD>
345<TD ALIGN="right">cell 1.2</TD>
346</TR>
347<TR>
348<TH>heading 2</TH>
349<TD ALIGN="center">cell 2.1</TD>
350<TD ALIGN="right">cell 2.2</TD>
351</TR>
352<TR>
353<TH>heading 3</TH>
354<TD ALIGN="center">cell 3.1</TD>
355<TD ALIGN="right">cell 3.2</TD>
356</TR>
357</TABLE>
358
359<TABLE CELLPADDING="4">
360<TR>
361<TH>heading</TH>
362<TH>heading 1</TH>
363<TH>heading 2</TH>
364</TR>
365<TR>
366<TH>heading 1</TH>
367<TD ALIGN="center">cell 1.1</TD>
368<TD ALIGN="right">cell 1.2</TD>
369</TR>
370<TR>
371<TH>heading 2</TH>
372<TD ALIGN="center">cell 2.1</TD>
373<TD ALIGN="right">cell 2.2</TD>
374</TR>
375</TABLE>
376
377<H1>Special Entities</H1>
378
379<P>
380Because things were too simple.
381</P>
382
383<H2>Images</H2>
384
385<P>
386The image mark is as simple as it can be: <CODE>[filename]</CODE>.
387</P>
388                      <center><IMG ALIGN="middle" SRC="img/photo.jpg" BORDER="0" ALT=""></center>  
389<P>
390And with some targets the image is linkable :
391</P>
392<P>
393                      <A HREF="http://www.txt2tags.org"><IMG ALIGN="middle" SRC="img/photo.jpg" BORDER="0" ALT=""></A>  
394</P>
395
396<UL>
397<LI>The filename must end in PNG, JPG, GIF, or similar.
398<LI>No spaces inside the brackets!
399</UL>
400
401<H2>Other</H2>
402
403<P>
404When the target needs, special chars like &lt;, &gt; and &amp;
405are escaped.
406</P>
407<P>
408The handy <CODE>%%date</CODE> macro expands to the current date.
409</P>
410<P>
411So today is 20130530 on the ISO <CODE>YYYYMMDD</CODE> format.
412</P>
413<P>
414You can also specify the date format with the %? flags,
415as <CODE>%%date(%m-%d-%Y)</CODE> which gives: 05-30-2013.
416</P>
417<P>
418That's all for now.
419</P>
420
421<HR NOSHADE SIZE=1>
422
423<P>
424<IMG ALIGN="left" SRC="img/t2tpowered.png" BORDER="0" ALT=""> (<A HREF="sample.t2t">sample.t2t</A>)
425</P>
426
427<!-- html code generated by txt2tags 2.6.1148 (http://txt2tags.org) -->
428<!-- cmdline: txt2tags -t html samples/sample.t2t -->
429</BODY></HTML>