Syntax-highlighting PHP code

From: Date: Wed, 05 Jul 2000 21:16:27 +0000
Subject: Syntax-highlighting PHP code
Groups: php.general 
Request: Send a blank email to php-general+get-5072@lists.php.net to get a copy of this message
I was wondering if there is an easy way to display syntax-highlighted code snippets in an HTML document the way Zend.com does it in their code-gallery. I'm trying to write a tutorial and want to display pieces of code to illustrate several examples. I know I can put the code into separate files and use the show_source() function to color-code them, but that really isn't feasible for the small code samples I intend to use. I've been enclosing the code inside <pre></pre> tags, but this is less elegant. If anyone has any ideas, please let me know. Thanks, Vamsi http://php.vamsi.net

« previous php.general (#5072) next »