Do any of you have a favorite syntax highlighter? I've been looking for a nice one. I've tried GeSHi, Alex Gorbatchev's SyntaxHighlighter, Prettify, Highlight.js, SHJS, Chili, and beatyOfCode. There are pluses and minuses for all of them.
I've just been wondering if anyone has come across one that can automatically determine a language transition within a single code block. For example:
<html>
<!-- this should be syntax-highlighted for HTML -->
<script type="text/javascript">
// and here we switch to higlighting JS
</script>
</head>
<body>
<?php /* can we switch to PHP highlighting here? */ echo $content; ?>
</body>
</html>
But that is highly complicated and I haven't found anything quite so advanced yet.
Anyway, any favorites or recommendations? Thanks.