参考地址:http://www.dreamprojections.com/syntaxhighlighter/ dp.SyntaxHighlighter is a free JavaScript tool for source code syntax highlighting.
The script is meant to help a developer to post code snippets online with ease and without having to worry about applying format. People who use blogs like MovableType, .Text (dotText), dasBlog and any other system can easily add code to their posts.
If you are looking to get syntax highlighter for your blog, give dp.SyntaxHighlighter a try! 演示地址: http://www.cnlei.com/codelab/SyntaxHighlighter_1.4.1/index.html