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:
Zend_Acl Zend_Amf Zend_Application Zend_Auth Zend_Cache
Zend_Captcha Zend_CodeGenerator Zend_Config Zend_Config_Writer Zend_Console_Getopt
Zend_Controller Zend_Currency Zend_Date Zend_Db Zend_Debug
Zend_Dojo Zend_Dom Zend_Exception Zend_Feed Zend_File
Zend_Filter Zend_Form Zend_Gdata Zend_Http Zend_InfoCard
Zend_Json Zend_Layout Zend_Ldap Zend_Loader Zend_Locale
Zend_Log Zend_Mail Zend_Measure Zend_Memory Zend_Mime
Zend_Navigation Zend_OpenId Zend_Paginator Zend_Pdf Zend_ProgressBar
Zend_Queue Zend_Reflection Zend_Registry Zend_Rest Zend_Search_Lucene
Zend_Server Zend_Service Zend_Session Zend_Soap Zend_Tag
Zend_Test Zend_Text Zend_TimeSync Zend_Tool_Framework Zend_Tool_Project
Zend_Translate Zend_Uri Zend_Validate Zend_Version Zend_View
Zend_Wildfire Zend_XmlRpc ZendX_Console_Process_Unix ZendX_JQuery
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




