head
key(name)operator(:) string(paragraphs) key(desc)operator(:) string(Textile looks for paragraphs in your text. Paragraphs are separated by one blank line. Every paragraph is translated as an HTML paragraph.) key(in)operator(:) stringFollowed by another.
)> head key(name)operator(:) string(block containing block start) key(in)operator(:) stringWhen the elephant comes to take a p. you…
)> head key(name)operator(:) string(blockquote containing block start) key(in)operator(:) stringI saw a ship. It ate my elephant.
)> head key(name)operator(:) string(extended blockquote containing block start) key(in)operator(:) stringI saw a ship. It ate my elephant.
When the elephant comes to take a p. you…
)> head key(name)operator(:) string(notextile block containing block start) key(in)operator(:) stringWhen the elephant comes to take a p. you…--- )> key(name)operator(:) string(html tags) key(desc)operator(:) string(You can certainly use HTML tags inside your Textile documents. HTML will only be escaped if it’s found in a
pre
or code
block.)
key(in)operator(:) stringI am very serious.)> key(html)operator(:) string
I am <b>very</b> serious.)> head key(name)operator(:) string(line breaks) key(desc)operator(:) string(Line breaks are converted to HTML breaks.) key(in)operator(:) string
“Observe!”
) head key(name)operator(:) string(quotes contained in multi-paragraph quotes) key(in)operator(:) string“It’s wonderful.”
)> head key(name)operator(:) string(double hyphens) key(desc)operator(:) string(Double hyphens are replaced with an em-dash.) key(in)operator(:) string(Observe--very nice!) key(html)operator(:) string(Observe—very nice!
) key(latex)operator(:) stringObserve — very nice!
) key(latex)operator(:) stringObserve – tiny and brief.
) key(latex)operator(:) stringObserve the nicely-done hyphen.
) head key(name)operator(:) string(ellipses) key(desc)operator(:) string(Triplets of periods become an ellipsis.) key(in)operator(:) string(Observe...) key(html)operator(:) string(Observe…
) key(lite_mode_html)operator(:) string(Observe…) head key(name)operator(:) string(dimension sign) key(desc)operator(:) string(The letter 'x' becomes a dimension sign when used between digits.) key(in)operator(:) stringMy mouse: 2.5″ × 4″.
') head key(name)operator(:) string(dimension signs with single primes) key(in)operator(:) stringone™, two®, three©.
) key(lite_mode_html)operator(:) string(one™, two®, three©.) head key(name)operator(:) string(headers) key(desc)operator(:) string(To make an entire paragraph into a Header, place “hn.” at its beginning, where n is a number from 1-6.) key(in)operator(:) string(h3. Header 3) key(html)operator(:) string(A block quotation.
Any old text
)> head key(name)operator(:) string(footnote reference) key(desc)operator(:) string(Numeric references within text to footnotes appear between square brackets.) key(in)operator(:) string(This is covered elsewhere[1].) key(html)operator(:) string(This is covered elsewhere1.
) head key(name)operator(:) string(footnote) key(desc)operator(:) string(To create the footnote that corresponds to its reference within the text, begin a new paragraph with fn and the footnote’s number, followed by a dot and a space.) key(in)operator(:) string(fn1. Down here, in fact.) key(html)operator(:) string(1 Down here, in fact.
) head key(name)operator(:) string(em) key(desc)operator(:) string(Emphasis to text is added by surrounding a phrase with underscores. In HTML, this often appears as italics.) key(in)operator(:) string(I _believe_ every word.) key(html)operator(:) string(I believe every word.
) key(lite_mode_html)operator(:) stringAnd then? She fell!
) key(lite_mode_html)operator(:) stringCat’s Cradle by Vonnegut
) head key(name)operator(:) string(code phrases) key(desc)operator(:) string(Code phrases can be surrounded by at-symbols.) key(in)operator(:) string(Convert with @r.to_html@) key(html)operator(:) string(Convert with r.to_html
r.to_html
)
head
key(name)operator(:) string(code phrases not created with multiple email addresses)
key(in)operator(:) string(Please email why@domain.com or jason@domain.com.)
key(html)operator(:) string(Please email why@domain.com or jason@domain.com.
) head key(name)operator(:) string(del) key(desc)operator(:) string(To indicate a passage which has been deleted, surround the passage with hypens.) key(in)operator(:) string(I'm -sure- not sure.) key(html)operator(:) string(I’m sure not sure.
You are a pleasant child.
) head key(name)operator(:) string(superscript) key(desc)operator(:) string(To superscript a phrase, surround with carets.) key(in)operator(:) string(a ^2^ + b ^2^ = c ^2^) key(html)operator(:) string(a 2 + b 2 = c 2
) head key(name)operator(:) string(parenthetical superscript phrase) key(in)operator(:) string('^(image courtesy NASA\)^') key(html)operator(:) string('(image courtesy NASA\)
') head key(name)operator(:) string(subscript) key(desc)operator(:) string(To subscript, surround with tildes.) key(in)operator(:) string(log ~2~ x) key(html)operator(:) string(log 2 x
) head key(name)operator(:) string(parenthetical subscript phrase) key(in)operator(:) string('~(image courtesy NASA\)~') key(html)operator(:) string('(image courtesy NASA\)
') head key(name)operator(:) string(tight superscript and subscript) key(desc)operator(:) string(if you want your superscript or subscript to not be surrounded by spaces, you must use square brackets) key(in)operator(:) string(f(x, n\) = log[~4~]x[^n^]) key(html)operator(:) string('f(x, n\) = log4xn
') head key(name)operator(:) string(span) key(desc)operator(:) string(Lastly, if you find yourself needing to customize the style of a passage, use percent symbols to translate the passage as an HTML span.) key(in)operator(:) string(I'm %unaware% of most soft drinks.) key(html)operator(:) string(I’m unaware of most soft drinks.
) head key(name)operator(:) string(style span) key(desc)operator(:) string(This way, you can apply style settings, as described in the next section to arbitrary phrases.) key(in)operator(:) stringAn example
) head key(name)operator(:) string(css id) key(desc)operator(:) string(An element ID can be given by prefixing the ID with a pound symbol and using it in place of the class.) key(in)operator(:) string(p(#big-red\). Red here) key(html)operator(:) string(Red here
) head key(name)operator(:) string(class and id combined) key(desc)operator(:) string(Class and ID can be combined by placing the class first.) key(in)operator(:) string(p(example1#big-red2\). Red here) key(html)operator(:) string(Red here
) head key(name)operator(:) string(css style) key(desc)operator(:) string(Style settings can be provided directly by surrounding them in curly braces.) key(in)operator(:) string(p{color:blue;margin:30px}. Spacey blue) key(html)operator(:) string(Spacey blue
) head key(name)operator(:) string(language designations) key(desc)operator(:) string(Language designations can be given between angel brackets.) key(in)operator(:) string(p[fr]. rouge) key(html)operator(:) string(rouge
) head key(name)operator(:) string(block attributes on phrase modifiers) key(desc)operator(:) string(All block attributes can be applied to phrases as well by placing them just inside the opening modifier.) key(in)operator(:) stringjustified
) head key(name)operator(:) string(indentation) key(desc)operator(:) string(Indentation can also be specified by provide a single left paren for every 1em to the left. A single right paren for every 1em to the right.) key(in)operator(:) string(p\)\)\). right ident 3em) key(html)operator(:) string(right ident 3em
) head key(name)operator(:) string(indentation and alignment) key(desc)operator(:) string(Identation may be coupled with alignment.) key(in)operator(:) string(h2(\)>. Bingo.) key(html)operator(:) string(pre
and code
tags. Please also indent your code inside the tags to be sure that all Textile processors out there will ignore the contents.)
key(in)operator(:) string
a.gsub!( /, '' \)
)>
key(html)operator(:) string
a.gsub!( /</, '' \)
)>
head
key(name)operator(:) string(div tags)
key(desc)operator(:) string(You may also choose to surround sections with div
tags to separate your document into sections. Instiki uses this technique to float a sidebar to the right.)
key(in)operator(:) stringThe main text of the page goes here and will stay to the left of the sidebar.
)> head key(name)operator(:) string(numbered list) key(desc)operator(:) string(To make a numbered list, place each item in its own paragraph, preceded by ”#”.) key(in)operator(:) stringI searched Google.
) key(lite_mode_html)operator(:) string(I searched Google.) head key(name)operator(:) string(link aliases) key(desc)operator(:) string(If you are using the same link several times in your document, or you’d just like to be a tad more organized, you can use a link alias. Place the URL anywhere in your document, beginning with its alias in square brackets. Then, use the alias in place of the URL, using the link format above.) key(in)operator(:) stringAnd others sat all round the small
machine and paid it to sing to them.
We use CSS.
) key(lite_mode_html)operator(:) string(We use CSS.) key(no_span_caps_html)operator(:) string(We use CSS.
) head key(name)operator(:) string(tables) key(desc)operator(:) string(Simple tables can be built by separating fields with pipe characters) key(in)operator(:) stringtable
modifier and following it by a period.)
key(in)operator(:) stringA pre block ends it.)> head key(name)operator(:) string(extended block followed by blockquote) key(in)operator(:) string
)> head key(name)operator(:) string(extended block followed by block code) key(in)operator(:) stringA blockquote ends it.
A blockcode ends it.
)>
head
key(name)operator(:) string(extended block followed by notextile block)
key(in)operator(:) stringIBM or (HAL\)
) key(no_span_caps_html)operator(:) string(IBM or (HAL\)
) head key(name)operator(:) string(phrase modifiers in parentheses) key(desc)operator(:) string(Inline modifiers are expected to work in parentheses as well.) key(in)operator(:) string