Small Business Resources

I spend the better part of my time advising Small Business on the ins and outs of Online Marketing. Pop over to eBiz4Results.com for the full story.

Current Project

At the end of 2008, I launched BestMacTools.com where you will find reviews, and commentary mostly related to Productivity Tools for Mac OS X.

For Bloggers

It is now just about axiomatic... the most effective online marketing tool for any business is a Blog. That's why I publish Blog4Results.com.

Sep
04

Textile Markup with MediaWiki, Revisited

By Nigel Ball

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:

  1. Install the AlternateSyntaxParser extension.
  2. Drop this script (AlternateSyntaxParserTextile2.php) into $IP/extensions/AlternateSyntaxParser
  1. Enable the extension by adding this line to your LocalSettings.php:
require_once('extensions/AlternateSyntaxParser/MarkdownSyntax.php'); after the line enabling the AlternateSyntaxParser
  1. Download the Textile2 library
  2. Extract the file classTextile.php from the downloaded archive.
  1. 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’;
Categories : Coding, Publishing

2 Comments

1

[…] 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. […]

2

are you positive about

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

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

Leave a Comment