The Textile Markup Reference for Textpattern
Textile processes text in units of blocks of text, which are separated by a blank line. Paragraphs are the default block type, therefore <p> </p>
tags are added to plain text blocks. In order to identify special types of text blocks, a block signature is used. Block signatures are one to three characters terminated by a period, and are placed at the beginning of a text block. They include:
Extended blocks (with empty lines), are marked by two periods, e.g. bc.. or bq.. and are terminated with any other text block signature, usually p. to start a normal paragraph.
Some block signatures accept formatting modifiers, also for CSS or language specification.
The formatting modifiers can be combined. For example in order to right align a paragraph and set it in small type you would write:
p>{font-size:0.8em}. TxStyle is a documentation project for the Textile markup language.
Within a text block, any portion of the text can be modified by inline formatting signatures. They include:
<strong>
strong </strong>
.<em>
emphasis </em>
.<b>
bold </b>
.<i>
italics </i>
.<del>
deleted text </del>
.<ins>
inserted text </ins>
.<sup>
superscript </sup>
.<sub>
subscript </sub>
.<cite>
citation </cite>
.<span>
span </span>
.<code>
code </code>
.Textile processing can be omitted also inline, then the ==
signature is used to enclose the text portion to be left out. Any combination of inline formatting is permitted. For example:
_**-deleted bold emphasized text-**_
results in:
deleted bold emphasized text
Some text elements, like special characters or apostrophes, are automatically converted to their HTML or unicode equivalent. This includes:
“
and ”
)‘
and ’
)&
<
or >
-
)—
)×
)…
)Special symbols can be created easily by the letters in parentheses or square brackets:
Different kinds of lists are supported, and can be mixed.
Bulleted lists:
* A bulleted
* list example
translates into:
Numbered lists:
# A numbered
# list example
translates into:
Definition lists:
- A definition list item := An example definition
translates into:
In addition to this, Textile supports formatting for Tables, Footnotes, Links and Images, and other elements.
Some portions of this text have been adapted from the Textile documentation for Movable Type by Brad Choate.
Block modifiers
Paragraphs
Headings
Block code
Pre-formatted text
Textile comments
HTML
Block quotations
No Textile formatting
Lists and notes
Bulleted list
Numbered lists
Definition lists
Footnotes
Auto-numbered notes
Links and images
Tables
Phrase modifiers
Strong and bold text
Emphasized and italic text
Superscript and subscript
Insertions and deletions
Citation
Inline code
Attributes
Alignment
Indentation
Span
CSS styles
CSS classes and CSS ID's
Language
Typography
Character conversions
Unicode symbols
Acronyms and abbreviations
Uppercase words
Further Information
PHP Textile versions
Textile related linklists
Tools
Blank input form
Table Data Converter
Report Issues
Issues on PHP Textile (GitHub)