Extensible Code Editor

CodeMirror is a code editor component for the web. It can be used in websites to implement a text input field with support for many editing features, and has a rich programming interface to allow further extension.

This is a CodeMirror field, configured for editing JavaScript code.

Features

About

CodeMirror is open source under a permissive license (MIT). It is being developed on GitHub. Contributions are welcome.

If you are using CodeMirror commercially, there is a social (but no legal) 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

A full parser package, often with language-specific integration and extension code, exists for the following languages:

There is also a collection of CodeMirror 5 modes that can be used, and a list of community-maintained language packages. If your language is not listed above, you may still find a solution there.

Sponsors

These wonderful companies and organizations help fund development and maintenance of CodeMirror.

Gold

Silver

Airplane Cargo CodePen Dataiku Labware Overleaf Prisma 4me

Bronze