General Integration of kindeditor and SyntaxHighlighter-PHP development

Source: Internet
Author: User
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           
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.