你可以在这里找到一些关于 CodeMirror 的描述,一般会包含代码,会以推荐的方式使用该库来做一些事情。
创建一个脚本文件让浏览器可以加载
配置您的编辑器和动态修改配置项
给编辑器或拓展添加样式,以及怎么创建一个新的编辑器主题
编辑器默认不处理 Tab,感觉困惑或者苦恼的话,阅读本章
这个案例创建一个运行数百万行文档的编辑器,只是因为我们可以
设置编辑器,以便于它可以在 IE 中加载
怎么使用和修改编辑器选择
怎么编写代码修改编辑器文档
新增装饰器来影响编辑器绘制内容的方式
属性控制从右到左和双向文本
给编辑器状态集成文档外的撤销记录
配置 2 个视图查看同一份文档
Constructing an extension that styles alternating lines.
Explains how the library handles UI text, and translates the editor into German.
Providing hints for possible input in the editor.
Defining and configuring editor gutters.
Explains how to display UI panels above and below an editor.
Shows how to use the tooltip extension to display a cursor tracker and a hover tooltip.
Define a function that finds problems in the content, and show those problems in the editor.
Setting up a collaborative editing system with CodeMirror.