PageRenderTime 33ms CodeModel.GetById 17ms RepoModel.GetById 1ms app.codeStats 0ms

/test/marks/ok/quote.html

http://txt2tags.googlecode.com/
HTML | 133 lines | 111 code | 20 blank | 2 comment | 0 complexity | 9744e991473bdb96b7e1f096710c95f2 MD5 | raw file
Possible License(s): GPL-2.0, GPL-3.0, WTFPL
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <HTML>
  3. <HEAD>
  4. <META NAME="generator" CONTENT="http://txt2tags.org">
  5. </HEAD><BODY BGCOLOR="white" TEXT="black">
  6. <CENTER>
  7. </CENTER>
  8. <H2>Syntax: TAB defines quote</H2>
  9. <BLOCKQUOTE>
  10. To quote a paragraph, just prefix it by a TAB
  11. character. All the lines of the paragraph must
  12. begin with a TAB.
  13. </BLOCKQUOTE>
  14. <P>
  15. Any non-tabbed line closes the quote block.
  16. </P>
  17. <H2>Nesting: Creating deeper quotes</H2>
  18. <BLOCKQUOTE>
  19. The number of leading TABs identifies the quote
  20. block depth. This is quote level 1.
  21. <BLOCKQUOTE>
  22. With two TABs, we are on the quote
  23. level 2.
  24. <BLOCKQUOTE>
  25. The more TABs, more deep is
  26. the quote level.
  27. <BLOCKQUOTE>
  28. There isn't a limit.
  29. </BLOCKQUOTE>
  30. </BLOCKQUOTE>
  31. </BLOCKQUOTE>
  32. </BLOCKQUOTE>
  33. <H2>Nesting: Reverse nesting works</H2>
  34. <BLOCKQUOTE>
  35. <BLOCKQUOTE>
  36. <BLOCKQUOTE>
  37. <BLOCKQUOTE>
  38. This quote starts at
  39. level 4.
  40. </BLOCKQUOTE>
  41. Then its depth is decreased.
  42. </BLOCKQUOTE>
  43. Counting down, one by one.
  44. </BLOCKQUOTE>
  45. Until the level 1.
  46. </BLOCKQUOTE>
  47. <H2>Nesting: Random count</H2>
  48. <BLOCKQUOTE>
  49. <BLOCKQUOTE>
  50. <BLOCKQUOTE>
  51. Unlike lists, any quote block is
  52. independent, not part of a tree.
  53. </BLOCKQUOTE>
  54. </BLOCKQUOTE>
  55. The TAB count don't need to be incremental
  56. by one.
  57. <BLOCKQUOTE>
  58. <BLOCKQUOTE>
  59. <BLOCKQUOTE>
  60. The nesting don't need
  61. to follow any rule.
  62. </BLOCKQUOTE>
  63. </BLOCKQUOTE>
  64. Quotes can be opened and closed
  65. in any way.
  66. <BLOCKQUOTE>
  67. <BLOCKQUOTE>
  68. <BLOCKQUOTE>
  69. You choose.
  70. </BLOCKQUOTE>
  71. </BLOCKQUOTE>
  72. </BLOCKQUOTE>
  73. </BLOCKQUOTE>
  74. </BLOCKQUOTE>
  75. <H2>Nesting: When not supported</H2>
  76. <BLOCKQUOTE>
  77. Some targets (as sgml) don't support the
  78. nesting of quotes. There is only one quote
  79. level.
  80. <BLOCKQUOTE>
  81. In this case, no matter how much
  82. TABs are used to define the quote
  83. block, it always will be level 1.
  84. </BLOCKQUOTE>
  85. </BLOCKQUOTE>
  86. <H2>Syntax: Spaces after TAB</H2>
  87. <BLOCKQUOTE>
  88. Spaces AFTER the TAB character are allowed.
  89. But be careful, it can be confusing.
  90. </BLOCKQUOTE>
  91. <H2>Invalid: Spaces before TAB</H2>
  92. <P>
  93. Spaces BEFORE the TAB character
  94. invalidate the mark. It's not quote.
  95. </P>
  96. <H2>Invalid: Paragraphs inside</H2>
  97. <BLOCKQUOTE>
  98. Paragraph breaks inside a quote aren't
  99. possible.
  100. </BLOCKQUOTE>
  101. <BLOCKQUOTE>
  102. This sample are two separated quoted
  103. paragraphs, not a quote block with
  104. two paragraphs inside.
  105. </BLOCKQUOTE>
  106. <H2>Closing: EOF closes the open block</H2>
  107. <BLOCKQUOTE>
  108. The end of the file (EOF) closes the
  109. currently open quote block.
  110. </BLOCKQUOTE>
  111. <!-- html code generated by txt2tags (http://txt2tags.org) -->
  112. <!-- cmdline: txt2tags -q -\-no-rc quote.t2t -->
  113. </BODY></HTML>