Highlighting source syntax using code folding

I know that there are many syntax highlighting scripts in Javascript to add syntax highlighting to the source code. I am looking to see if such a thing with the addition of a fold code exists, like so many IDEs.

Do you know anything exists?

+4
source share
1 answer

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

It is written in Javascript and supports many languages โ€‹โ€‹( full list here ).

+6
source

Source: https://habr.com/ru/post/1387765/