Advertisement
Aacini

T2H - Format of the source text file.txt

Nov 20th, 2013
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.28 KB | None | 0 0
  1. The name of the text file is used for the document title and the main header.
  2. The contents of the text file is processed this way:
  3.  
  4. - Each line is encoded as a paragraph and separated by an empty line.
  5. - An empty line is encoded as an additional empty line.
  6. - Use [br] to insert a line break in a paragraph.
  7. - Use [br clear="all"] to cancel right/left alignment of previous element.
  8. - Use [hr] to insert an horizontal rule.
  9. - Use word1[nbsp]word2 to keep two words together.
  10.  
  11. Special tags borrowed from: http://en.wikipedia.org/wiki/Main_Page
  12.  
  13. - ==Header of chapter==
  14. - ===Header of section into chapter===
  15. - ====Header of subsection into section====, etc... (up to 6 equal signs)
  16.  
  17. Special tags borrowed from: http://www.dostips.com/forum/viewforum.php?f=3
  18.  
  19. - [b]Bold text[/b]
  20. - [i]Italic text[/i]
  21. - [u]Underlined text[/u]
  22. - [color="colorValue"]Color text[/color]
  23.  
  24. - [img]http://image_url[/img]
  25. - [url=http://link_url]Description[/url]
  26.  
  27. - [list]Description or [list=T]Description (T = 1 a A i I)
  28. [*]Item one
  29. [*]Item two, etc...
  30. [/list]
  31.  
  32. - [code]
  33. Multi-line program code
  34. [/code]
  35.  
  36. Additional modifiers and tags:
  37.  
  38. - =Header of Table of Contents=
  39. - ==Header of subdivision==|Title in table of contents
  40. - = (close the table of contents)
  41. - [s]Striked text[/s]
  42. - [tt]TeleType text[/tt]
  43. - [small]Small text[/small]
  44. - [big]Big text[/big]
  45. - [sub]Subscript text[/sub]
  46. - [sup]Superscript text[/sup]
  47. - [q]Quoted text[/q]
  48. - [kbd]Keyboard text[/kbd] (not HTML standard)
  49. - [color="#color" size="#size" face="font list"]Text[/color]
  50. - [style="property=value;..."]Text[/style]
  51. - [list=T] (T = 0 g G d c s " " H C|L|R|B:pad:margin:margin2)
  52. - [code]Code segment in-line[/code]
  53. - [url="Text"?target:Url]option:Description|Title[/url]
  54. - [img modifiers]image1|image2|...[url=addr1]Desc1[/url][url=addr2]Desc2[/url]...[/img]
  55. - [select][url=addr1]Desc1[/url][url=addr2]Desc2[/url]...[/select]
  56.  
  57. - [table=includeFile tableMod;headerMod;dataMod;col1Mod|col2Mod...]Description
  58. |Header1|Header2|...
  59. Cell 1-1|Cell 1-2|...
  60. Cell 2-1|Cell 2-2|[cellMod]Cell 2-3..., etc...
  61. [/table]
  62.  
  63. - [code:includeFile style:value; ...]Description
  64. Multi-line program code
  65. [/code]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement