Home >Web Front-end >JS Tutorial >Tips on implementing code syntax highlighting dp.SyntaxHighlighter_javascript

Tips on implementing code syntax highlighting dp.SyntaxHighlighter_javascript

WBOY
WBOYOriginal
2016-05-16 19:19:431162browse

Haha, because up to now, BLOG has been using LBS, and I feel that it lacks many functions that I like to use. This time I finally made up my mind to write my own BLOG program. In order to be compatible with the previous BLOG, the format of the content storage will still remain the same as LBS. consistent.
Because I post a lot of code in my blog, I would like to consider using JS to highlight the syntax of the code.
I have seen dp.SyntaxHighlighter before, but did not study it in depth -_-
I plan to add the code highlighting function to the new BLOG, so I will study it carefully during this time:)

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 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!

Demo address:
http://www.cnlei.com/codelab/SyntaxHighlighter_1.4.1/index.html
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn