Peter's Blog

Redefining the Impossible

Drupal Wilki Module


I've extensively modified the wiki module to suit my own selfish schemes. My version has the following features:

  • Bullet, numbered list and definitions may span multiple lines:
    * this is the text
      associated with a bullet item
    
    gives
    • this is the text associated with a bullet item
  • Syntax highlighting for Python and PHP (with possibility of others) thanks to Geshi.
    function Blah( $strTry)
    {
        print $strTry;
    }
    
    def Blag( strTry):
        print strTry
    
  • As you may notice, blocks are associated with list items, i.e. I can have a numbered list and any item in it can have associated source code without breaking the numbering of the list.
  • Renamed it wilki as a geek joke and also so I can switch back to the wiki module.

I haven't bothered with **bold** or any of that because I just use normal html markup like <b> if I want bold or whatever. For me the main advantages are the syntax highlighting and the more advanced list handling.

The module is here and formatting instructions are here. It requires Geshi to be installed, the 1.02beta version for python markup. The only way I could get this to work was to hard wire the absolute path to the geshi language files into the module source.


Filed under: drupal php python wilki

Sorry but comments on this post are now closed.