File: sample.html

package info (click to toggle)
txt2tags 2.3-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 2,448 kB
  • ctags: 706
  • sloc: python: 2,323; lisp: 414; ruby: 347; php: 114; sh: 81; makefile: 67; xml: 59
file content (271 lines) | stat: -rw-r--r-- 5,332 bytes parent folder | download
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<META NAME="generator" CONTENT="http://txt2tags.sf.net">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>TXT2TAGS SAMPLE</TITLE>
</HEAD><BODY BGCOLOR="white" TEXT="black">
<P ALIGN="center"><CENTER><H1>TXT2TAGS SAMPLE</H1>
<FONT SIZE="4">
<I>Aurelio Marinho Jargas</I><BR>
03/21/2005
</FONT></CENTER>

<H1>Introduction</H1>
<P>
Welcome to the txt2tags sample file.
</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></P>
<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
preformatted 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> 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 preformatted text:
</P>
<PRE>
    here    is     preformatted
  //marks// are  **not**  ``interpreted``
</PRE>
<P></P>
<P>
And also, it's easy to put a one line preformatted
text:
</P>
<PRE>
  prompt$ ls /etc
</PRE>
<P></P>
<P>
Or use <CODE>preformatted</CODE> inside sentences.
</P>
<H2>More Cosmetics</H2>
<P>
Special entities like email (<A HREF="mailto:duh@somewhere.com">duh@somewhere.com</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></P>
<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" CELLPADDING="4" 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></P>
<P>
Without the last pipe, no border:
</P>
<TABLE ALIGN="center" CELLPADDING="4">
<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></P>
<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 20050614 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: 06-14-2005.
</P>
<P>
That's all 4now.
</P>
<HR NOSHADE SIZE=1>
<P>
<IMG ALIGN="left" SRC="img/t2tpowered.png" BORDER="0" ALT=""> (<A HREF="sample.t2t">sample.t2t</A>)
</P>

<!-- html code generated by txt2tags 2.3 (http://txt2tags.sf.net) -->
<!-- cmdline: txt2tags -t html samples/sample.t2t -->
</BODY></HTML>