使用代码折叠突出显示源代码语法
我知道 Javascript 中有许多语法突出显示脚本可以向源代码添加语法突出显示,我想看看是否存在这样的东西,并且像许多 IDE 一样添加了代码折叠功能。
你知道是否存在这样的东西吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
感谢 Wikipedia,我找到了
CodeMirror
,即不仅是语法荧光笔,而且还是代码编辑器。但是,根据以下代码折叠演示,您可以将其用作查看器。它是用 Javascript 编写的,支持多种语言(此处有完整列表)。
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).