有一个很好的浏览器内代码编辑器吗? [英] Is there a good in-browser code editor?

查看:160
本文介绍了有一个很好的浏览器内代码编辑器吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们都看过浏览器中的富文本编辑器,它们允许您以所见即所得的方式编辑彩色/样式文本。但是代码编辑器会在您键入时自动突出显示基于语言规则的代码呢?在textarea中思考Eclipse(但没有重构支持)。

We've all seen in-browser rich text editors, which allow you to edit colored/styled text in a WYSIWYG manner. But what about code editors, which automatically highlight code based on language rules as you type? Think Eclipse in a textarea (but without the refactoring support).

这样的事情存在吗?我想缩放将是一个问题 - 较大的文件将难以有效编辑。

Do such things exist? I imagine scaling would be a problem - larger files would be difficult to edit efficiently.

推荐答案

CodeMirror 支持60多种语言,以及实现更高级编辑功能的插件(自动完成,代码折叠,可配置键绑定,搜索和替换,linter整合等)。丰富的编程API和CSS主题系统可用于自定义CodeMirror,并使用新功能扩展它。

CodeMirror comes with support for 60+ languages, and addons that implement more advanced editing functionality (autocompletion, code folding, configurable key bindings, search & replace, linter integration etc.). A rich programming API and a CSS theming system are available for customizing CodeMirror, and extending it with new functionality.

它自2007年初开发,具有维基百科页面,并且正在大量流行的开源项目中使用(Joomla,Firebug等) 。

It has been developed since early 2007, has a Wikipedia page, and is being used in a wide number of popular open source projects (Joomla, Firebug etc.).

这篇关于有一个很好的浏览器内代码编辑器吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆