/doc/English/markup.html

http://txt2tags.googlecode.com/ · HTML · 413 lines · 314 code · 97 blank · 2 comment · 0 complexity · 34a8cdf953bd139618a526740b34ef84 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="http://txt2tags.org/markup.css">
  7. <TITLE>Txt2tags Markup Demo</TITLE>
  8. </HEAD>
  9. <BODY>
  10. <DIV CLASS="header" ID="header">
  11. <H1>Txt2tags Markup Demo</H1>
  12. <H2>See marks converted to HTML</H2>
  13. </DIV>
  14. <DIV CLASS="body" ID="body">
  15. <table>
  16. <tr><th colspan="2">
  17. BASIC
  18. </th></tr><tr><td class="t2t">
  19. <PRE>
  20. = Title level 1 =
  21. == Title level 2 ==
  22. === Title level 3 ===
  23. </PRE>
  24. </td><td>
  25. <H1>Title level 1</H1>
  26. <H2>Title level 2</H2>
  27. <H3>Title level 3</H3>
  28. </td></tr><tr><td class="t2t">
  29. <PRE>
  30. + Numbered Title level 1 +
  31. ++ Numbered Title level 2 ++
  32. +++ Numbered Title level 3 +++
  33. </PRE>
  34. </td><td>
  35. <H1>1. Numbered Title level 1</H1>
  36. <H2>1.1. Numbered Title level 2</H2>
  37. <H3>1.1.1. Numbered Title level 3</H3>
  38. </td></tr><tr><td class="t2t">
  39. <PRE>
  40. A paragraph is made by one or
  41. more lines.
  42. A blank line separates them.
  43. </PRE>
  44. </td><td>
  45. <P>
  46. A paragraph is made by one or
  47. more lines.
  48. </P>
  49. <P>
  50. A blank line separates them.
  51. </P>
  52. </td></tr><tr><td class="t2t">
  53. <PRE>
  54. % start a line with
  55. a percent sign,
  56. % and it will be ignored
  57. useful for TODOs!
  58. </PRE>
  59. </td><td>
  60. <P>
  61. a percent sign,
  62. useful for TODOs!
  63. </P>
  64. </td></tr><tr><td class="t2t">
  65. <PRE>
  66. For beautifiers we have **bold**
  67. and //italic//.
  68. There is also __underline__, --strike--
  69. and ``monospaced``.
  70. </PRE>
  71. </td><td>
  72. <P>
  73. For beautifiers we have <B>bold</B>
  74. and <I>italic</I>.
  75. </P>
  76. <P>
  77. There is also <U>underline</U>, <S>strike</S>
  78. and <CODE>monospaced</CODE>.
  79. </P>
  80. </td></tr><tr><th colspan="2">
  81. LISTS
  82. </th></tr><tr><td class="t2t">
  83. <PRE>
  84. - This is a list of items
  85. - Just use hyphens
  86. - More indent opens a sublist
  87. Two blank lines close all the lists.
  88. </PRE>
  89. </td><td>
  90. <UL>
  91. <LI>This is a list of items
  92. <LI>Just use hyphens
  93. <UL>
  94. <LI>More indent opens a sublist
  95. </UL>
  96. </UL>
  97. <P>
  98. Two blank lines close all the lists.
  99. </P>
  100. </td></tr><tr><td class="t2t">
  101. <PRE>
  102. + Change the hyphen by a plus
  103. + And you have a numbered list
  104. + Same rules apply
  105. +
  106. +
  107. An empty item closes the current list.
  108. </PRE>
  109. </td><td>
  110. <OL>
  111. <LI>Change the hyphen by a plus
  112. <LI>And you have a numbered list
  113. <OL>
  114. <LI>Same rules apply
  115. </OL>
  116. </OL>
  117. <P>
  118. An empty item closes the current list.
  119. </P>
  120. </td></tr><tr><td class="t2t">
  121. <PRE>
  122. : Definition list
  123. A list with terms
  124. : Start term with colon
  125. And its definition follows
  126. :
  127. </PRE>
  128. </td><td>
  129. <DL>
  130. <DT>Definition list</DT><DD>
  131. A list with terms
  132. <DT>Start term with colon</DT><DD>
  133. And its definition follows
  134. </DL>
  135. </td></tr><tr><th colspan="2">
  136. AREAS
  137. </th></tr><tr><td class="t2t">
  138. <PRE>
  139. A quoted paragraph is prefixed
  140. by a TAB.
  141. More TABs, more deep.
  142. No TAB or blank line, closes quote.
  143. </PRE>
  144. </td><td>
  145. <BLOCKQUOTE>
  146. A quoted paragraph is prefixed
  147. by a TAB.
  148. <BLOCKQUOTE>
  149. More TABs, more deep.
  150. </BLOCKQUOTE>
  151. </BLOCKQUOTE>
  152. <P>
  153. No TAB or blank line, closes quote.
  154. </P>
  155. </td></tr><tr><td class="t2t">
  156. <PRE>
  157. Verbatim line is nice for commands:
  158. ``` $ cat /etc/passwd | tr : ,
  159. Just prefix it with 3 backquotes.
  160. </PRE>
  161. </td><td>
  162. <P>
  163. Verbatim line is nice for commands:
  164. </P>
  165. <PRE>
  166. $ cat /etc/passwd | tr : ,
  167. </PRE>
  168. <P>
  169. Just prefix it with 3 backquotes.
  170. </P>
  171. </td></tr><tr><td class="t2t">
  172. <PRE>
  173. ```
  174. A verbatim area is enclosed
  175. inside three backquotes.
  176. **Marks** are not interpreted
  177. and spacing is preserved.
  178. ```
  179. </PRE>
  180. </td><td>
  181. <PRE>
  182. A verbatim area is enclosed
  183. inside three backquotes.
  184. **Marks** are not interpreted
  185. and spacing is preserved.
  186. </PRE>
  187. </td></tr><tr><td class="t2t">
  188. <PRE>
  189. """
  190. A raw area is enclosed
  191. inside three doublequotes.
  192. **Marks** are not interpreted
  193. and spacing is not preserved.
  194. """
  195. </PRE>
  196. </td><td>
  197. A raw area is enclosed
  198. inside three doublequotes.
  199. **Marks** are not interpreted
  200. and spacing is not preserved.
  201. </td></tr><tr><td class="t2t">
  202. <PRE>
  203. '''
  204. &lt;div id="myblock"&gt;
  205. &lt;p style="color:red"&gt;
  206. A tagged area is enclosed
  207. inside three single quotes.
  208. &lt;/p&gt;
  209. &lt;p style="color:blue"&gt;
  210. No parsing is made inside it,
  211. useful to insert target code.
  212. &lt;/p&gt;
  213. &lt;/div&gt;
  214. '''
  215. </PRE>
  216. </td><td>
  217. <div id="myblock">
  218. <p style="color:red">
  219. A tagged area is enclosed
  220. inside three single quotes.
  221. </p>
  222. <p style="color:blue">
  223. No parsing is made inside it,
  224. useful to insert target code.
  225. </p>
  226. </div>
  227. </td></tr><tr><th colspan="2">
  228. OTHER
  229. </th></tr><tr><td class="t2t">
  230. <PRE>
  231. || Table Heading | Table Heading |
  232. | Table | align |
  233. | lines | is |
  234. | with cell | nice! |
  235. </PRE>
  236. </td><td>
  237. <TABLE BORDER="1">
  238. <TR>
  239. <TH>Table Heading</TH>
  240. <TH>Table Heading</TH>
  241. </TR>
  242. <TR>
  243. <TD ALIGN="right">Table</TD>
  244. <TD ALIGN="center">align</TD>
  245. </TR>
  246. <TR>
  247. <TD ALIGN="right">lines</TD>
  248. <TD ALIGN="center">is</TD>
  249. </TR>
  250. <TR>
  251. <TD ALIGN="right">with cell</TD>
  252. <TD ALIGN="center">nice!</TD>
  253. </TR>
  254. </TABLE>
  255. </td></tr><tr><td class="t2t">
  256. <PRE>
  257. [t2t.png] Left aligned image
  258. Center [t2t.png] aligned
  259. Right aligned [t2t.png]
  260. </PRE>
  261. </td><td>
  262. <P>
  263. <IMG ALIGN="left" SRC="../img/t2tpowered.png" BORDER="0" ALT=""> Left aligned image
  264. </P>
  265. <P>
  266. Center <IMG ALIGN="middle" SRC="../img/t2tpowered.png" BORDER="0" ALT=""> aligned
  267. </P>
  268. <P>
  269. Right aligned <IMG ALIGN="right" SRC="../img/t2tpowered.png" BORDER="0" ALT="">
  270. </P>
  271. </td></tr><tr><td class="t2t">
  272. <PRE>
  273. A link is recognized@automaticaly.see?
  274. A [named link www.myurl.com] is easy.
  275. An image [[t2t.png] as-a-link.html].
  276. </PRE>
  277. </td><td>
  278. <P>
  279. A link is <A HREF="mailto:recognized@automaticaly.see">recognized@automaticaly.see</A>?
  280. </P>
  281. <P>
  282. A <A HREF="http://www.myurl.com">named link</A> is easy.
  283. </P>
  284. <P>
  285. An image <A HREF="as-a-link.html"><IMG ALIGN="middle" SRC="../img/t2tpowered.png" BORDER="0" ALT=""></A>.
  286. </P>
  287. </td></tr><tr><td class="t2t">
  288. <PRE>
  289. A separator line:
  290. --------------------
  291. And a stronger one:
  292. ====================
  293. (At least 20 chars)
  294. </PRE>
  295. </td><td>
  296. <P>
  297. A separator line:
  298. </P>
  299. <HR NOSHADE SIZE=1>
  300. <P>
  301. And a stronger one:
  302. </P>
  303. <HR NOSHADE SIZE=5>
  304. <P>
  305. (At least 20 chars)
  306. </P>
  307. </td></tr>
  308. </table>
  309. <P>
  310. <A HREF="http://txt2tags.org">Go to the txt2tags website</A>
  311. </P>
  312. </DIV>
  313. <!-- html code generated by txt2tags 2.6.585 (http://txt2tags.org) -->
  314. <!-- cmdline: txt2tags English/markup/markup.t2t -->
  315. </BODY></HTML>