I packaged up the code changes I made to Alex Gorbatchev’s excellent dp.SyntaxHighlighter to make it work with PunBB. It is available for download (example).
The modifications basically boil down to two things:
- Hardcode the type of code (since it isn’t settable through BBCode).
- Work with the HTML generated from [code] blocks.
Instructions are included in the .zip file; feedback is welcome.
Please post support questions in the thread in the PunBB forums.
I’ve only just come across this PunBB mod and have to say it’s a very clever script that gives a polished look to any posted code.
Effective syntax highlighting is the holy grail of many IDE’s, let alone web pages. Although not up to application standards, it’s a very cool tool and a must for any self respecting IT focused PunBB forum.
Recommended!