首页 技术 正文
技术 2022年11月22日
0 收藏 517 点赞 3,909 浏览 2570 个字

官方网站定义: http://codemirror.net/

  • CodeMirror is a versatile text editor implemented in JavaScript for the browser. It is specialized for editing code, and comes with a number of language modes and addons that implement more advanced editing functionality.
  • A rich programming API and a CSS theming system are available for customizing CodeMirror to fit your application, and extending it with new functionality.
  • User manual and reference guide

  1. CodeMirror is a code-editor component that can be embedded in Web pages. The core library provides only the editor component, no accompanying buttons, auto-completion, or other IDE functionality. It does provide a rich API on top of which such functionality can be straightforwardly implemented. See the addons included in the distribution, and thelist of externally hosted addons, for reusable implementations of extra features.
  2. CodeMirror works with language-specific modes. Modes are JavaScript programs that help color (and optionally indent) text written in a given language. The distribution comes with a number of modes (see the mode/ directory), and it isn’t hard to write new ones for other languages.
 Features

3 Support for over 60 languages out of the box
4 A powerful, composable language mode system
5 Autocompletion (XML)
6 Code folding
7 Configurable keybindings
8 Vim, Emacs, and Sublime Text bindings
9 Search and replace interface
10 Bracket and tag matching
11 Support for split views
12 Linter integration
13 Mixing font sizes and styles
14 Various themes
15 Able to resize to fit content
16 Inline and block widgets
17 Programmable gutters
18 Making ranges of text styled, read-only, or atomic
19 Bi-directional text support
20 Many other methods and addons...

  codemirror是一个基于Javascript的代码编辑器,我们可以将其嵌入到任何支持Javascript的页面中。

  codemirror支持大量语言的高亮显示,包括C、C++、C#、JAVA、Perl、PHP、JavaScript、Python、Lua、Go、Groovy、Ruby等,以及diff、LaTeX、SQL、wiki、Markdown等文件格式。此外,codemirror还支持代码自动完成、搜索/替换、HTML预览、行号、选择/搜索结果高亮、可视化tab、Emacs/VIM键绑定、代码自动格式等。

  codemirror采用MIT开发许可协议,目前已经被集成到各种应用程序中,如Adobe Bracket、CoDev、Light Table等开发环境,还被作为各种SQL、Haxe、JavaScript在线编辑器的基础库来使用。

  codemirror是一款”Online Source Editor”,基于Javascript,短小精悍,实时在线代码高亮显示,他不是某个富文本编辑器的附属产品,他是许多大名鼎鼎的在线代码编辑器的基础库。比如以下代码编辑器都是基于codemirror的

附注 — 各种不同语言的Demo演示:

相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:9,088
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,565
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,413
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,186
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,822
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,905