Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...

When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store

The Textile parser

The Textile parser is a Zend_Markup parser that converts Textile to a token tree. Because Textile doesn't have a tag structure, the following is a list of example tags:

Table 118. List of basic Textile tags

Sample input Sample output
*foo* <strong>foo</strong>
_foo_ <em>foo</em>
??foo?? <cite>foo</cite>
-foo- <del>foo</del>
+foo+ <ins>foo</ins>
^foo^ <sup>foo</sup>
~foo~ <sub>foo</sub>
%foo% <span>foo</span>
PHP(PHP Hypertext Preprocessor) <acronym title="PHP Hypertext Preprocessor">PHP</acronym>
"Zend Framework": <a href="">Zend Framework</a>
h1. foobar <h1>foobar</h1>
h6. foobar <h6>foobar</h6>
!! <img src="" />

Also, the Textile parser wraps all tags into paragraphs; a paragraph ends with two newlines, and if there are more tags, a new paragraph will be added.


The Textile parser also supports two types of lists. The numeric type, using the "#" character and bullit-lists using the "*" character. An example of both lists:

# Item 1
# Item 2

* Item 1
* Item 2

The above will generate two lists: the first, numbered; and the second, bulleted. Inside list items, you can use normal tags like strong (*), and emphasized (_). Tags that need to start on a new line (like 'h1' etc.) cannot be used inside lists.

Zend Framework