PHP permet de faire en natif de la colorisation syntaxique de code PHP. En ligne de commande, utiliser l’option -s : php -s chemin/complet/du/fichier.php
http://www.manucorp.com/docs/php/features.commandline.php
Dans du code PHP utiliser la fonction highlight_string : http://fr3.php.net/highlight_string
http://www.spip-contrib.net/Du-joli-code-dans-les-articles
L’honorable Beautifier
Le très avancé avec démo en ligne GeSHi
http://www.gnu.org/software/src-highlite/
et son portage sous windows
http://gnuwin32.sourceforge.net/packages/source-highlight.htm