Textile

Textile is a markup language for creating nice looking web pages without having to know HTML. However, you can also insert HTML when needed, which makes it very flexible.

Textile allows you to format text, create tables, insert pictures, and more, all without having to know HTML code.

Textile Sample

Here are some examples of the Textile formatting used on one of the Giants team page:

h1. Majors: Giants Team Page
|{background:#ddd}. _*{color:red}To check on field conditions, call 408-777-3566 (Cupertino Fields hotline).*_|

h2. Coaches
|Albert Lum| 255-1234|
|Paco Gomez| 444-5555|
|Mark Cabrales||

h2. Parent Sign-up Schedule
"Giants Schedule.xls":http://groups.yahoo.com/group/Giants/files/Giants%20Schedule.xls 

Textile Enhancements

I am using the RedCloth Ruby implementation of Textile. However, this code has a few bugs and limitations which I have corrected. Some of these enhancements include:

  • Imbedable Ruby ERB code
  • Flexibility with the space after the dot ”.” in block commands
  • End a div with “div.”
  • More flexibility with table processing
  • Various fixes so HTML will be processed correctly

I have posted patches for these issues but there hasn’t been recent development on RedCloth, so most of the patches have not been included in the code yet.