txt2 test

txt2 syntax

(click "output" above to see it in action)

Basic (inline)

bold
italic
strikethrough
monospaced text
**disable** formatting
hyperlink
multiple word hyperlink
off-topic
When wrapping single words, single-character marks may also be used, as in this one.

Advanced (block level)

Code blocks

Place "" (two quote marks) on a separate line, then your code, then another two quote marks on a next line.
Example:
function H2I takes handle h returns integer
	return h
	return 0
endfunction

Quotes

> quotes
> can span multiple lines
> 
> ">" character followed by single space on each line is required
> > quotes can be nested
Result:
quotes
can span multiple lines
">" character followed by single space on each line is required
quotes can be nested

Spoilers

>> Spoiler header
Spoiler text
<<
Result:
» Spoiler header
Spoiler text

Video & images

Paste a direct link on a separate line, without any HTML/BB markup.
Supported hosting sites include:
Example:

Headers

Level One
========================

=== Level Two ===
=== Level Three
Amount of "=" characters is arbitrary.

Separators

Produced by one or more "-" characters on a separate line.
Example:

Unformatted text

Place {{ (two curly braces) on a separate line, then your text, then }} on a next line.
Example:
> *no* formatting rules apply here

Lists

- first item
- second item
 1. subitem one
   * subitem one-one
   * subitem one-two
 2. subitem two
- third item
Result:
  • first item
  • second item
    1. subitem one
      • subitem one-one
      • subitem one-two
    2. subitem two
  • third item

Tables

col1|col2|col3
--------------------------
1-1     | 1-2    | 1-3
2-1     | 2-2    | 2-3
Result:
col1col2col3
1-1 1-2 1-3
2-1 2-2 2-3
Blank line before table is required.
Tab characters might be used instead of "|" characters
<div class="txt2"><h1>txt2 syntax</h1>

<div>(click &quot;output&quot; above to see it in action)<br /></div>

<h2>Basic (inline)</h2>

<div><b>bold</b><br />
<i>italic</i><br />
<s>strikethrough</s><br />
<tt>monospaced text</tt><br />
**disable** formatting<br />
<a href="http://google.com/" target="_blank">hyperlink</a><br />
<a href="http://google.com/" target="_blank">multiple word hyperlink</a><br />
<span class="off">off-topic</span><br /></div>

<div>When wrapping single words, single-character marks may also be used, as in <b>this</b> <i>one</i>.<br /></div>

<h2>Advanced (block level)</h2>

<h3>Code blocks</h3>

<div>Place &quot;&quot; (two quote marks) on a separate line, then your code, then another two quote marks on a next line.<br />
Example:<br /></div>

<pre><code>function H2I takes handle h returns integer
	return h
	return 0
endfunction</code></pre>

<h3>Quotes</h3>

<pre><code>&gt; quotes
&gt; can span multiple lines
&gt; 
&gt; &quot;&gt;&quot; character followed by single space on each line is required
&gt; &gt; quotes can be nested</code></pre>

<div>Result:<br />
<blockquote><div>quotes<br />
can span multiple lines<br /></div>
<div>&quot;&gt;&quot; character followed by single space on each line is required<br />
<blockquote><div>quotes can be nested<br /></div></blockquote></div></blockquote></div>

<h3>Spoilers</h3>

<pre><code>&gt;&gt; Spoiler header
Spoiler text
&lt;&lt;</code></pre>

<div>Result:<br /></div>

<div class="spoiler">
<span class="control">&raquo; Spoiler header</span>
<div class="cut"><div>Spoiler text<br /></div></div>
</div>

<h3>Video &amp; images</h3>

<div>Paste a <b>direct</b> link on a separate line, without any HTML/BB markup.<br />
Supported hosting sites include:<br />
<ul>
<li><a href="http://ipicture.ru" target="_blank">ipicture.ru</a><br /></li>
<li><a href="http://keep4u.ru" target="_blank">keep4u.ru</a><br /></li>
<li><a href="http://imageshack.us" target="_blank">imageshack.us</a><br /></li>
<li><a href="http://imageshost.ru" target="_blank">imageshost.ru</a><br /></li>
<li><a href="http://youtube.com" target="_blank">youtube.com</a><br /></li>
<li><a href="http://rutube.ru" target="_blank">rutube.ru</a><br /></li>
<li><a href="http://vimeo.com" target="_blank">vimeo.com</a><br /></li>
</ul></div>

<div>Example:<br /></div>

<div class="img_inline"><a class="magiclink" href="http://www.youtube.com/watch?v=dQw4w9WgXcQ" title="" target="_blank">http://www.youtube.com/watch?v=dQw4w9WgXcQ</a><br /></div>


<h3>Headers</h3>

<pre><code>Level One
========================

=== Level Two ===
=== Level Three</code></pre>

<div>Amount of &quot;=&quot; characters is arbitrary.<br /></div>

<h3>Separators</h3>

<div>Produced by one or more &quot;-&quot; characters on a separate line.<br />
Example:<br /></div>

<hr />

<h3>Unformatted text</h3>

<div>Place {{ (two curly braces) on a separate line, then your text, then }} on a next line.<br />
Example:<br /></div>

<div class="escape">&gt; *no* formatting rules apply here</div>

<h3>Lists</h3>

<pre><code>- first item
- second item
 1. subitem one
   * subitem one-one
   * subitem one-two
 2. subitem two
- third item</code></pre>

<div>Result:<br />
<ul>
<li>first item<br /></li>
<li>second item<br />
<ol>
<li>subitem one<br />
<ul>
<li>subitem one-one<br /></li>
<li>subitem one-two<br /></li>
</ul></li>
<li>subitem two<br /></li>
</ol></li>
<li>third item<br /></li>
</ul></div>

<h3>Tables</h3>

<pre><code>col1|col2|col3
--------------------------
1-1     | 1-2    | 1-3
2-1     | 2-2    | 2-3</code></pre>

<div>Result:<br /></div>

<table>
<thead><th>col1</th><th>col2</th><th>col3</th></thead>
<tbody>
<tr><td>1-1     </td><td> 1-2    </td><td> 1-3</td></tr>
<tr><td>2-1     </td><td> 2-2    </td><td> 2-3</td></tr>
</tbody>
</table>

<div>Blank line before table is required.<br />
Tab characters might be used instead of &quot;|&quot; characters<br /></div></div>
parsed in 0.0068s