Best server side syntax highlighting solution (in PHP)
Do you guys know a syntax highlighter capable of highlighting mixed PHP+HTML+CSS+JS code?
like:
<?php
echo 'foo';
?>
<div> foo </div>
<style type="text/css">
开发者_JAVA百科 .foo {color: #3d3;}
</style>
I only know GeShi so far. It's pretty cool, but it only supports one language at a time.
It's not PHP, but Pygments is awesome. And it is faster than GeShi, even used in PHP with the system()
function.
精彩评论