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