txt2 syntax
(click "output" above to see it in action)
Basic (inline)
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:
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
- subitem one
- subitem one-one
- subitem one-two
- subitem two
- third item
Tables
col1|col2|col3
--------------------------
1-1 | 1-2 | 1-3
2-1 | 2-2 | 2-3
Result:
| col1 | col2 | col3 |
| 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