/samples/css/modern.html

http://txt2tags.googlecode.com/ · HTML · 348 lines · 295 code · 51 blank · 2 comment · 0 complexity · 5c0a51d618ee51b5d31fa98487390fe0 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. <LINK REL="stylesheet" TYPE="text/css" HREF="modern.css">
  7. <TITLE>TXT2TAGS SAMPLE</TITLE>
  8. </HEAD>
  9. <BODY>
  10. <DIV CLASS="header" ID="header">
  11. <H1>TXT2TAGS SAMPLE</H1>
  12. <H2>Aurelio Jargas</H2>
  13. <H3>10/31/2010</H3>
  14. </DIV>
  15. <DIV CLASS="toc">
  16. <UL>
  17. <LI><A HREF="#toc1">Introduction</A>
  18. <LI><A HREF="#toc2">Fonts and Beautifiers</A>
  19. <UL>
  20. <LI><A HREF="#toc3">Beautifiers</A>
  21. <LI><A HREF="#toc4">Pre-Formatted Text</A>
  22. <LI><A HREF="#toc5">More Cosmetics</A>
  23. </UL>
  24. <LI><A HREF="#toc6">Lists</A>
  25. <UL>
  26. <LI><A HREF="#toc7">Plain List</A>
  27. <LI><A HREF="#toc8">Numbered List</A>
  28. <LI><A HREF="#toc9">Definition List</A>
  29. </UL>
  30. <LI><A HREF="#toc10">Tables</A>
  31. <LI><A HREF="#toc11">Special Entities</A>
  32. <UL>
  33. <LI><A HREF="#toc12">Images</A>
  34. <LI><A HREF="#toc13">Other</A>
  35. </UL>
  36. </UL>
  37. </DIV>
  38. <DIV CLASS="body" ID="body">
  39. <A NAME="toc1"></A>
  40. <H1>Introduction</H1>
  41. <P>
  42. Welcome to the txt2tags sample file.
  43. </P>
  44. <P>
  45. Here you have examples and a brief explanation of all
  46. marks.
  47. </P>
  48. <P>
  49. The first 3 lines of the this file are used as headers,
  50. on the following format:
  51. </P>
  52. <PRE>
  53. line1: document title
  54. line2: author name, email
  55. line3: date, version
  56. </PRE>
  57. <P>
  58. Lines with balanced equal signs = around are titles.
  59. </P>
  60. <A NAME="toc2"></A>
  61. <H1>Fonts and Beautifiers</H1>
  62. <P>
  63. We have two sets of fonts:
  64. </P>
  65. <P>
  66. The NORMAL type that can be improved with beautifiers.
  67. </P>
  68. <P>
  69. The TYPEWRITER type that uses monospaced font for
  70. pre-formatted text.
  71. </P>
  72. <P>
  73. We will now enter on a subtitle...
  74. </P>
  75. <A NAME="toc3"></A>
  76. <H2>Beautifiers</H2>
  77. <P>
  78. The text marks for beautifiers are simple, just as you
  79. type on a plain text email message.
  80. </P>
  81. <P>
  82. We use double *, /, - and _ to represent <B>bold</B>,
  83. <I>italic</I>, <S>strike</S> and <U>underline</U>.
  84. </P>
  85. <P>
  86. The <B><I>bold italic</I></B> style is also supported as a
  87. combination.
  88. </P>
  89. <A NAME="toc4"></A>
  90. <H2>Pre-Formatted Text</H2>
  91. <P>
  92. We can put a code sample or other pre-formatted text:
  93. </P>
  94. <PRE>
  95. here is pre-formatted
  96. //marks// are **not** ``interpreted``
  97. </PRE>
  98. <P>
  99. And also, it's easy to put a one line pre-formatted
  100. text:
  101. </P>
  102. <PRE>
  103. prompt$ ls /etc
  104. </PRE>
  105. <P>
  106. Or use <CODE>pre-formatted</CODE> inside sentences.
  107. </P>
  108. <A NAME="toc5"></A>
  109. <H2>More Cosmetics</H2>
  110. <P>
  111. Special entities like email (<A HREF="mailto:duh@somewhere.com">duh@somewhere.com</A>) and
  112. URL (<A HREF="http://www.duh.com">http://www.duh.com</A>) are detected automagically,
  113. as long as the horizontal line:
  114. </P>
  115. <HR NOSHADE SIZE=1>
  116. <P>
  117. ^ thin or large v
  118. </P>
  119. <HR NOSHADE SIZE=5>
  120. <P>
  121. You can also specify an <A HREF="http://duh.org">explicit link</A>
  122. with label.
  123. </P>
  124. <P>
  125. And remember,
  126. </P>
  127. <BLOCKQUOTE>
  128. A TAB in front of the line does a quotation.
  129. <BLOCKQUOTE>
  130. More TABs, more depth (if allowed).
  131. </BLOCKQUOTE>
  132. </BLOCKQUOTE>
  133. <P>
  134. Nice.
  135. </P>
  136. <A NAME="toc6"></A>
  137. <H1>Lists</H1>
  138. <P>
  139. A list of items is natural, just putting a <B>dash</B> or
  140. a <B>plus</B> at the beginning of the line.
  141. </P>
  142. <A NAME="toc7"></A>
  143. <H2>Plain List</H2>
  144. <P>
  145. The dash is the default list identifier. For sublists,
  146. just add <B>spaces</B> at the beginning of the line. More
  147. spaces, more sublists.
  148. </P>
  149. <UL>
  150. <LI>earth
  151. <UL>
  152. <LI>america
  153. <UL>
  154. <LI>south america
  155. <UL>
  156. <LI>brazil
  157. <UL>
  158. <LI>how deep can i go?
  159. </UL>
  160. </UL>
  161. </UL>
  162. <LI>europe
  163. <UL>
  164. <LI>lots of countries
  165. </UL>
  166. </UL>
  167. <LI>mars
  168. <UL>
  169. <LI>who knows?
  170. </UL>
  171. </UL>
  172. <P>
  173. The list ends with <B>two</B> consecutive blank lines.
  174. </P>
  175. <A NAME="toc8"></A>
  176. <H2>Numbered List</H2>
  177. <P>
  178. The same rules as the plain list, just a different
  179. identifier (plus).
  180. </P>
  181. <OL>
  182. <LI>one
  183. <LI>two
  184. <LI>three
  185. <UL>
  186. <LI>mixed lists!
  187. <LI>what a mess
  188. <OL>
  189. <LI>counting again
  190. <LI>...
  191. </OL>
  192. </UL>
  193. <LI>four
  194. </OL>
  195. <A NAME="toc9"></A>
  196. <H2>Definition List</H2>
  197. <P>
  198. The definition list identifier is a colon, followed by
  199. the term. The term contents is placed on the next line.
  200. </P>
  201. <DL>
  202. <DT>orange</DT><DD>
  203. a yellow fruit
  204. <DT>apple</DT><DD>
  205. a green or red fruit
  206. <DT>other fruits</DT><DD>
  207. <UL>
  208. <LI>wee!
  209. <LI>mixing lists
  210. <OL>
  211. <LI>again!
  212. <LI>and again!
  213. </OL>
  214. </UL>
  215. </DL>
  216. <A NAME="toc10"></A>
  217. <H1>Tables</H1>
  218. <P>
  219. Use pipes to compose table rows and cells.
  220. Double pipe at the line beginning starts a heading row.
  221. Natural spaces specify each cell alignment.
  222. </P>
  223. <TABLE ALIGN="center" BORDER="1">
  224. <TR>
  225. <TH>heading 1</TH>
  226. <TH>heading 2</TH>
  227. <TH>heading 3</TH>
  228. </TR>
  229. <TR>
  230. <TD>cell 1.1</TD>
  231. <TD ALIGN="center">cell 1.2</TD>
  232. <TD ALIGN="right">cell 1.3</TD>
  233. </TR>
  234. <TR>
  235. <TD>cell 2.1</TD>
  236. <TD ALIGN="center">cell 2.2</TD>
  237. <TD ALIGN="right">cell 2.3</TD>
  238. </TR>
  239. </TABLE>
  240. <P>
  241. Without the last pipe, no border:
  242. </P>
  243. <TABLE ALIGN="center">
  244. <TR>
  245. <TH>heading 1</TH>
  246. <TH>heading 2</TH>
  247. <TH>heading 3</TH>
  248. </TR>
  249. <TR>
  250. <TD>cell 1.1</TD>
  251. <TD ALIGN="center">cell 1.2</TD>
  252. <TD ALIGN="right">cell 1.3</TD>
  253. </TR>
  254. <TR>
  255. <TD>cell 2.1</TD>
  256. <TD ALIGN="center">cell 2.2</TD>
  257. <TD ALIGN="right">cell 2.3</TD>
  258. </TR>
  259. </TABLE>
  260. <A NAME="toc11"></A>
  261. <H1>Special Entities</H1>
  262. <P>
  263. Because things were too simple.
  264. </P>
  265. <A NAME="toc12"></A>
  266. <H2>Images</H2>
  267. <P>
  268. The image mark is as simple as it can be: <CODE>[filename]</CODE>.
  269. </P>
  270. <center><IMG ALIGN="middle" SRC="../img/photo.jpg" BORDER="0" ALT=""></center>
  271. <UL>
  272. <LI>The filename must end in PNG, JPG, GIF, or similar.
  273. <LI>No spaces inside the brackets!
  274. </UL>
  275. <A NAME="toc13"></A>
  276. <H2>Other</H2>
  277. <P>
  278. The handy <CODE>%%date</CODE> macro expands to the current date.
  279. </P>
  280. <P>
  281. So today is 20101031 on the ISO <CODE>YYYYMMDD</CODE> format.
  282. </P>
  283. <P>
  284. You can also specify the date format with the %? flags,
  285. as <CODE>%%date(%m-%d-%Y)</CODE> which gives: 10-31-2010.
  286. </P>
  287. <P>
  288. That's all for now.
  289. </P>
  290. <HR NOSHADE SIZE=1>
  291. <P>
  292. <IMG ALIGN="left" SRC="../img/t2tpowered.png" BORDER="0" ALT=""> (<A HREF="-">-</A>)
  293. </P>
  294. </DIV>
  295. <!-- html code generated by txt2tags 2.6 (http://txt2tags.org) -->
  296. <!-- cmdline: txt2tags -\-style modern.css -o modern.html -\-css-sugar -\-toc -t html - -->
  297. </BODY></HTML>