March 2010
M T W T F S S
« Feb    
1234567
891011121314
15161718192021
22232425262728
293031  
97

Categories

Archives

Formatting text using Textile

Example 1: Plain text

This is some test that I’m using as a test.

Still more text.

Example 2: Ordered list
  1. one
  2. two
  3. three
Example 3: Unordered list
  • wow
  • a
  • list
Example 4: Formatting text
Strikethrough:-Hello World- becomes Hello World
Superscripts:Hello ^World^ becomes Hello World
Subscripts:Hello ~World~ becomes Hello World
Code or quotes:@Hello World@ becomes Hello World

Example 5: Underlining

You’ll note that there is no underline option. There is a good reason for this. It is considered bad form to use underlines in online content because they look like links.

If you want to underline you have to use the span tag with the style=”text-decoration: underline;” wrapped around the text to accomplish it.

Example 6: CSS Styles
red (span):%{color:red}Hello World% becomes Hello World
red (bold):*{color:red}Hello World* becomes Hello World
red (italics):_{color:red}Hello World_ becomes Hello World
red (strikethrough):-{color:red}Hello World- becomes Hello World
Example 7: Links
“duke.edu textile doc”:http://www.biochem.duke.edu/help/textile

…becomes…

duke.edu textile doc

Example 8: Images

To insert an image, put exclamation points around the URL for the image:

1
!http://www.google.com/intl/en_ALL/images/logo.gif!

…becomes…

Example 9: Escaping notextile
option 1:==*Hello World*== becomes *Hello World*
Example 10: multi paragraph blockquotes

The new syntax is the “sticky” indicator, formed by tacking a second period onto the end of the bq. directive. The proper MT-Textile 2 formatting for my example looks like this:

1
2
3
4
5
bq.. This is the first paragraph.
 
This is the second paragraph.
 
p. To end the ...

becomes…

This is the first paragraph.

This is the second paragraph.

To end the sticky behavior, simply start the next paragraph with p.. It is an elegant solution for an elegant markup system.

Useful links

bradchoate.com textile tips
duke.edu textile doc
hobix – quick
hobix – long
mtmanual textile2

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>