Textile (markup language)
From Freepedia
Textile is a lightweight markup language originally developed by Dean Allen and billed as a "humane Web text generator". Textile converts its marked-up text input to valid, well-formed XHTML and also inserts character entity references for apostrophes, opening and closing single and double quotation marks, ellipses and em dashes, as well as replacing "international" characters in text with character entity references as a precaution against character encoding problems common on the web.
Textile was originally implemented in PHP, but has been translated into other programming languages including Perl, Python, Ruby, ASP and Java.
Textile is distributed under the GNU General Public License, and is included with, or available as a plugin for, several content-management systems.
Version 2.0 beta was released in 2004 as part of the Textpattern content management system.
Syntax examples
This is not an exhaustive listing of Textile's syntax. For a list of all available options, see the full syntax reference.
Emphasized text:
_emphasized_ (e.g., italics) *strongly emphasized* (e.g., boldface)
Code:
@code@
Lists:
* An item in a bulleted (unordered) list * Another item in a bulleted list
# An item in an enumerated (ordered) list # Another item in an enumerated list
Headings:
h1. An HTML first-level heading h2. An HTML second-level heading h3. An HTML third-level heading h4. An HTML fourth-level heading h5. An HTML fifth-level heading h6. An HTML sixth-level heading
Blockquotes:
bq. This text will be enclosed in an HTML blockquote element.
Links:
"link title":link.address
Images:
!image.address!
See also
- List of lightweight markup languages
- Textpattern, a content-management system, also originally by Dean Allen, which uses Textile.
External links
- Textile home page, which lists all Textile syntax and offers a demo.
- hobix.com Textile Reference, an example-based Textile reference.
- Text::Textile, an implementation of Textile in Perl.
- MT-Textile, an implementation of Textile in Perl for Movable Type.
- PyTextile, an implementation of Textile in Python.
- RedCloth, an implementation of Textile in Ruby.
- vbsTextile, an implementation of Textile for Microsoft Active Server
- JTextile, an implementation of Textile in Java
- Textile4j, an implementation of Textile in Java
- TextilePHP, PHP version of Brad Choate's Textile Perl module, adding several features present in the Perl version but not in the standard PHP version of Textile.



