Textile (markup language)

Textile is a lightweight markup language that uses a text formatting syntax to convert plain text into structured HTML markup. Textile is used for writing articles, forum posts, readme documentation, and any other type of written content published online.

Textile
Filename extensions
.textile
Developed byDean Allen
Initial releaseDecember 26, 2002 (2002-12-26)[1]
Latest release
3.7.1 (PHP)
(January 26, 2019 (2019-01-26)[2])
Type of formatMarkup language
Open format?yes
Websitetextile-lang.com

History

Textile was developed by Dean Allen in 2002, which he billed as "a humane web text generator" that enabled you to "simply write".[1] Dean created Textile for use in Textpattern, the CMS he also developed about the same time.

Textile is one of several lightweight markup languages to have influenced the development of Markdown.[3]

Programming language implementations

Textile was originally written in PHP (maintained as PHP-Textile[4]), and has since been translated into Perl,[5] Python (Python-Textile),[6] Ruby,[7] JavaScript (Textile-JS),[8] and C#.[9] A Java implementation used to exist called "Textile-J", but it was merged into the Mylyn WikiText project.[10]

Standardization

There is no standard nor a working specification at this time. However, there is a Textile "organization" on GitHub that invites contributions toward the creation of a common specification across Textile implementations.[11]

Doctype support

Text marked-up with Textile converts into valid HTML when rendered in a web browser, and though it probably varies from one implementation type to another, an installation of Textile can be set for a Doctype Declaration of XHTML or HTML5, with XHTML being the default for backward compatibility.

In the PHP implementation, for example, when using Textile's all-caps abbreviation syntax – AGE(A Given Example) – the result will render as an abbr element in HTML5 and as an acronym element in XHTML.[12] Likewise, as of PHP version 3.5, if you use alignment markers in Textile's image syntax, HTML5 will get extra classes on the rendered img element, while XHTML remains with the align attribute.[13]

Syntax usage

Various resources are available for learning and using Textile:

  • TxStyle – a help site for the PHP implementation of Textile, and provides a converter. This site is currently used by the Textpattern CMS project.[14]
  • Textile Reference Site for RedCloth – a help site for the Ruby implementation of Textile.[15]
  • Textile Syntax: Eclipse – a reference site for the Java implementation of Textile that's now merged with Mylin WikiText.[16]
  • Textile 2 Syntax – MovableType's Textile authoring documentation.[17]
  • Textile Cheatsheet – a basic quick-reference sheet from Warped Visions.[18]

In addition to its suite of syntax usage, Textile automatically inserts character entity references for apostrophes, opening and closing single and double quotation marks, ellipses and em dashes, to name a few.

Licensing

Textile is distributed under a BSD-style license and is included with, or available as a plugin for, several content-management systems.

Software and services

Various projects use (or have used) Textile:

See also

References

This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.