简体   繁体   中英

Sourcecode syntax highlighting with Code Folding

I know there are many syntax highlighting scripts in Javascript for adding syntax highlighting to source code, I am looking to see if such a thing exist with the addition of having Code Folding like many IDE's have.

Do you know if anything exist like that?

Thanks to Wikipedia , I found CodeMirror , which is not only a syntax highlighter, but also a code editor. However, according to the following code folding demo , you can use it just as a viewer.

It's written in Javascript and it supports a lot of languages ( full list here ).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM