TxStyle · Textile Documentation

The Textile Markup Reference for Textpattern

A short introduction to Textile formatting

Textile is a markup language (like Markdown) for formatting text in a weblog or a content management system (CMS). It has more options than Markdown, but is also somewhat more difficult to read. Therefore, Textile is less widely used, but it is the preferred markup language when advanced formatting, such as complex tables, footnotes, etc. are required. Textile has been around for more than 10 years, and implementations exist for all major CMS, also Textile is supported by Github.

Basic formatting includes bold or italic text, which is written as:

*bold* or _italic_ text

in Textile. If you wanted to create headlines of different levels, you would write:

 h1. A very large headline
 h2. A not so large headline
 h3. A small headline

What you get is this:

A very large headline

A not so large headline

A small headline

Bulleted lists are also easy:

* Red
* Green
* Blue

And this will be displayed in your browser:

  • Red
  • Green
  • Blue

Links are written in this style:


resulting in: Wikipedia

In order to create a table, you would write:

|_. First Header |_. Second Header |
|Content Cell |Content Cell |
|Content Cell |Content Cell |

As can be seen, Textile is somewhat similar to Markdown, therefore it is easy to learn, but more powerful. In fact, Textile’s formatting capabilities cover much what can be done with HTML and CSS otherwise.

Further Information
PHP Textile versions
Textile related linklists

Blank input form
Table Data Converter

Report Issues
Issues on PHP Textile (GitHub)

PHP Textile v3.6.0