Code highlighting in Mephisto

October 16th, 2007

I assumed this would be really obvious but I had to scour the internet to find instructions.

I wanted to use the included server side highlighting, as described on the Mephisto wiki. It turns out, though, that the correct tag is "filter:code", eg:

1
2
3
<filter:code lang="ruby">
puts "I winz!"
</filter:code->

(ignore the trailing dash, it's just there to invalidate the closing tag, as I can't find a way to nest one filter:code tag inside another.

I found correct instructions here on Ruby Rumble, but even they recommend using macro: tags rather than filter:.

I have to confess I'm a bit confused :-S

Still, it works...

Leave a Reply