Hehe, because so far, blog with is lbs, feel lack of a lot of their favorite features, this time finally determined to write their own blog program, for the compatibility of the blog before, the content of the format will remain in storage and lbs consistent.
Because of their own blog posted code will be more, to help consider using JS to achieve the syntax of the code to mark the effect.
I have seen the DP before. Syntaxhighlighter, but did not delve deeply into-_-
In the new blog to add code to highlight the function, this period of time to study carefully:
Reference Address: 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 about worry Format. People who use blogs like MovableType,. Text (Dottext), Dasblog and any other system can easily add code to their posts.
If you are are looking to get syntax highlighter for your blog, give DP. Syntaxhighlighter a try!
Demo Address:
Http://www.cnlei.com/codelab/SyntaxHighlighter_1.4.1/index.html