Best server side syntax highlighting solution (in PHP)

Do you guys know a syntax shortcut that can highlight mixed PHP + HTML + CSS + JS code?

as:

<?php echo 'foo'; ?> <div> foo </div> <style type="text/css"> .foo {color: #3d3;} </style> 

I only know GeShi . It's pretty cool, but it only supports one language at a time.

+7
source share
1 answer

This is not PHP, but Pygments is awesome. And it is faster than GeShi, even used in PHP using the system() function.

+8
source

All Articles