Extensible Code Editor

CodeMirror 6 is a rewrite of the CodeMirror code editor. It greatly improves the library's accessibility and touchscreen support, provides better content analysis and a modern programming interface. The new system matches the existing code in features and performance. It is not API-compatible with the old code.

The project is in the beta phase—there's a stable interface, but small breaking changes might still happen. It is being used in production in a few mid-size systems, but is not as battle-tested as the old version.

Features

About

CodeMirror is open source (MIT or GPL3). It is being developed on GitHub. Contributions are welcome.

If you are using CodeMirror commercially, there is a social expectation that you help fund its maintenance.   Start here.

The library supports browsers up from Internet Explorer 11 (with some polyfills).

Discussing the project, or asking questions, is best done on the forum. Bugs should be reported through the issue tracker. We aim to be an inclusive, welcoming community. To make that explicit, we have a code of conduct that applies to communication around the project.

Language Support

There is also a collection of CodeMirror 5 modes that can be used—if no full support is available for your language, you may still find a highlighter in there.

Sponsors

These wonderful companies and organizations helped fund the work on CodeMirror 6.

Diamond

Automattic Mozilla Bundesministerium für Bildung und Forschung

Gold

Wikimedia Foundation Observable Holmusk

Silver

Cargo Dataiku Overleaf 4me

Bronze

Amplenote Andrew Lee Buildkite Nuclino Pobox Repl.it superhi primo ARTCOMPILER