Textile Markup with MediaWiki, Revisited

Following 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”:http://jimandlissa.com/project/textilephp
# Extract the file @classTextile.php@ from the downloaded archive.
# Drop @classTextile.php@ into @$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@.

$wgAlternateSyntaxParserLanguage = ‘textile2’;

2 Replies to “Textile Markup with MediaWiki, Revisited”

  1. are you positive about

    require_once(‘extensions/AlternateSyntaxParser/MarkdownSyntax.php’);

    when the zip-archive only contains a file named AlternateSyntaxParserTextile2.php?

Leave a Reply

Your email address will not be published. Required fields are marked *