drupal

GeSHi and Pear Wiki Filter can play together

Having struggled for an age to work out how to get syntax highlighting for code blocks and the Pear wiki filter to work in harmony I thought it best to record the configuration here.

I've created an input format that allows for media wiki syntax to get headings, lists and some basic formatting using the following filters (listed in order).

  • GeSHi filter
  • PEAR Wiki Filter
  • Inline images
  • freelinking filter
  • HTML corrector
  • HTML Purifier

(I'm still tinkering with the Purifier to remove empty P elements)

The reason they are in that order is so that any code blocks are picked

Syndicate content