开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜