Textile Markup with MediaWiki, Revisited
ByFollowing Jim Wilson’s comment I have revisted this subject and now offer my own extension which adds Textile2 to the AlternateSyntaxParser without the need for hacking Jim’s original extension.
You can download the extension here.
Instructions are included in the source, but for convenience, they are repeated here…
Installation:
- Install the AlternateSyntaxParser extension.
- Drop this script (
AlternateSyntaxParserTextile2.php) into$IP/extensions/AlternateSyntaxParser
- Enable the extension by adding this line to your
LocalSettings.php:
require_once('extensions/AlternateSyntaxParser/MarkdownSyntax.php');
after the line enabling the AlternateSyntaxParser
- Download the Textile2 library
- Extract the file
classTextile.phpfrom the downloaded archive.
- Drop
classTextile.phpinto$IP/extensions/AlternateSyntaxParser/
Usage:
To use Textile2 in a page, put #MARKUP textile2 at the top of the page:
Alternatively, you may specify a site-wide default alternate language by setting the $wgAlternateSyntaxParserLanguage variable in your LocalSettings.php.









2 Comments
August 8th, 2008 at 4:32 pm
[…] Textile Markup with MediaWiki requires AlternateSyntaxParser extension in mediawiki (tags: textile mediawiki) Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages. […]
November 21st, 2008 at 11:25 pm
are you positive about
require_once(‘extensions/AlternateSyntaxParser/MarkdownSyntax.php’);
when the zip-archive only contains a file named AlternateSyntaxParserTextile2.php?