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.

Aug
30

Using Textile Markup with MediaWiki

By Nigel Ball

MediaWiki is used extensively for documentation sites simply because it has so many features that make it ideal for this type of wiki application. The primary example is, of course Wikipedia

Naturally, I want to use MediaWiki for my own documentation sites. However, I use Textile – a lightweight, humane web text generator almost exclusively wherever HTML markup would otherwise be used. Also, I have to admit that I find the built-in MediaWiki markup verbose, ugly and counter-intuitive.

So, I was pleased to find a well written and documented MediaWiki extension which provides for alternative parsers, including textile. For some reason, the standard extension does not work on my sites. What I describe here is a simple mechanism to replace the TextilePHP parser with the Textile2 parser.

Step One

Install the MediaWiki AlternativeSyntaxParser extension. Test it and if it works for you you’re done!

Step 2

If the basic installation does not work, or if you want to try Textile2, add the following lines to AlternativeSyntaxParser.php at about line #153

 case 'textile2':
    require_once('classTextile.php');
    $textile = new Textile();
    $text = $textile->TextileThis($parser->mSwappedOutText);
    break;

Step Three

Download the Textile2 source from here& and copy the file classTextile.php to the same directory where the alternative parsers are.

Step Four

Actually, you’re done! You now have another alternative parser ‘textile2’ available.

Once you have installed this, the editor buttons are no longer useful… maybe I’ll integrate TheEditorHelper unless someone else gets it done first.

Categories : Coding, Publishing

This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.