Go to content Go to navigation

Textile pre-formatting

7 April 2008, 07:47 by Chad Reynoldson

I implement code fragments in textpattern and I always struggle with the textile markup for pre-formatting to get it to display right.

I had previously tried unsuccessfully to get the <pre>add code here</pre> to work, but it formatted incorrectly most of the time. I finally stumbled upon the pre.. markup tag that seems to work the best. The trick is to add a space between the pre.. tag and the actual content pre.._space_Content here.. It seems to work every time.

Comments

Comments are turned off for this article.