使用代码折叠突出显示源代码语法

发布于 2024-12-22 11:06:41 字数 108 浏览 6 评论 0原文

我知道 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

终遇你 2024-12-29 11:06:41

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文