Textile

from Wikipedia, the free encyclopedia

Textile ( pun with the English adjective textile, "woven" for ) is a simplified markup language ( markup ) for texts and similar to that in Wikis used Wikitext . Textile was developed by Dean Allen in 2002 for the content management system Textpattern (TXP), which he also developed, in order to be able to easily convert formatted text into valid, well-formed XHTML source text when writing online articles . Textile observes typographical conventions such as the appropriate use of opening and closing quotation marks , dashes and other things. Textiles and text patterns have been further developed separately since 2010 .

Textile is specially tailored to the needs of blogs and other lightweight web content management systems . The descriptive language is primarily designed to be human-readable (" human ") and also easy to understand for laypeople. In contrast to HTML and XML- based markup languages ​​(such as DocBook ), Textile deliberately dispenses with angle brackets and realizes formatting with line breaks and a few special characters. Another advantage is that, compared to WYSIWYG editors such as TinyMCE, always valid XHTML source code is generated. The entries made by users are kept much more restrictive, as only a limited range of languages ​​tailored to the application is provided. This is of great benefit to a consistent CSS design that manages the design and content elements separately.

Dean Allen implemented the first Textile - Translator in PHP and released it under the GNU General Public License (GPL). The textile translator class currently (April 2007) available with Textpattern only contains the 3-clause BSD license in the file header .

Unlike the numerous Wikitext dialects in 2002, some of which were very inconsistent , Textile was well standardized and documented from the start. Thanks to the success of Textpattern and the open license, other systems were quickly expanded to include this alternative input option. Today translators are available in most of the programming languages ​​relevant to web development , including Perl, Python, Ruby, and Java. Many content management and weblog systems (including Serendipity and WordPress ) come with textiles or can be retrofitted as a plug-in . Textpattern uses it as the standard for text input.

Examples

input Translation in XHTML output
h3. Überschrift <h3>Überschrift</h3>
heading
*fett* <strong>fett</strong> fat
a[^n^] a<sup>n</sup> a n
"Wikipedia":http://wikipedia.de <a href="http://wikipedia.de">Wikipedia</a> Wikipedia
# nummerische Aufzählung <ol> <li>nummerische Aufzählung</li> </ol>
  1. numerical listing
* Aufzählung <ul> <li>Aufzählung</li> </ul>
  • enumeration
+Unterstrichen+ <ins>Unterstrichen</ins> Underlined
-Durchgestrichen- <del>Durchgestrichen</del> Strikethrough
_Kursiv_ <em>Kursiv</em> Italic
%{color:red}Rot% <span style="color:red">Rot</span> red

See also

Web links

Individual evidence

  1. ^ Stef Dawson: Textile and Textpattern: the future. Retrieved September 13, 2019 (en-GB-oxendict).