Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 229
CodeDevelopr Avatar asked Dec 23 '11 16:12

CodeDevelopr


People also ask

What is code folding used for?

Code or text folding, or less commonly holophrasting, is a feature of some graphical user interfaces that allows the user to selectively hide ("fold") or display ("unfold") parts of a document. This allows the user to manage large amounts of text while viewing only those subsections that are currently of interest.

What is syntax highlighting style?

Syntax highlighting determines the color and style of source code displayed in the Visual Studio Code editor. It is responsible for colorizing keywords like if or for in JavaScript differently than strings and comments and variable names.

Where are Kate syntax highlighting files?

kde. syntax-highlighting/syntax/ . On Windows® these files are located %USERPROFILE%\AppData\Local\org. kde.


1 Answers

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).

like image 169
ldiqual Avatar answered Sep 21 '22 17:09

ldiqual