Leaking Abstraction Caffeine, code, and ctrl+z

5Jan/100

Hacking Geshi syntax highlighter to recognize Zend Framework classes

This is kind of off-topic, but pretty neat. I was able to modify my Geshi WordPress plugin (called CodeColorer) to recognize Zend classes and link to the proper ZF Manual page. Example:

It wasn't too tough to do either. Replace your Geshi library with this one or, if you want to use the same WordPress plugin as I'm using, download the entire CodeColorer plugin and extract to your WordPress plugins directory.

Note: I probably have not added all Zend class documentation links - I didn't recurse through the whole ZF library and add every class because most actually don't have a dedicated manual section. In most cases I only added the main parent class. I'll try to keep this as updated as possible with new ZF releases.

Last file update: January 5th, 2010

Download CodeColorer WordPress plugin
Download only Geshi library