Recently, I used Thinkphp framework to develop a blog system called WBlog. Of course, there are many popular blog systems, such as wordpress and z-blog, however, I think wordpress seems too cumbersome, and z-blog is an asp script. I am not very familiar with asp and cannot find any satisfactory one. Let's simply develop it on your own! Considering that there will be many blog posts on code writing in the future, the Code highlight function is required to look elegant. There are many popular online editors, but I recently used Thinkphp framework to develop a blog system called WBlog. Of course there are many popular blog systems, such as wordpress, z-blog and so on, but I think wordpress seems too heavy, and z-blog is an asp script. I am not very familiar with asp and cannot find any satisfactory, let's develop it on your own!
Considering that there will be many blog posts on code writing in the future, the Code highlight function is required to look elegant. There are many popular editors on the Internet, but few of them have their own code highlighting functions. Finally, they find the Baidu online editor ueditor. The Code highlight function of ueditor is really good, but the plug-in package is quite large. After decompression, more than 10 MB! The editor of my blog uses kindeditor, which is a file of less than 3 MB after several hundred KB. If I change the ueditor, it will carry such a heavy burden, it is certainly uncomfortable to run. I studied ueditor and found that its code highlight function was originally integrated with the syntaxhighlighter plug-in, so I had the idea of integrating syntaxhighlighter with kindeditor, Baidu, the integration of syntaxhighlighter with kindeditor on the internet is quite a lot. Many people talk about it, but it is limited to a specific version, or even the version is not provided. I am confused. No way, I had to find it myself.
Why does syntaxhighlighter Enable code highlighting?
With this problem in mind:
SyntaxHighlighter Build Test Page