Github url

CodeMirror

by codemirror

codemirror /CodeMirror

In-browser code editor

20.8K Stars 4.4K Forks Last release: 19 days ago (5.56.0) MIT License 6.7K Commits 146 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

CodeMirror

Build StatusNPM versionJoin the chat at https://gitter.im/codemirror/CodeMirror

CodeMirror is a versatile text editor implemented in JavaScript for the browser. It is specialized for editing code, and comes with over 100 language modes and various addons that implement more advanced editing functionality. Every language comes with fully-featured code and syntax highlighting to help with reading and editing complex code.

A rich programming API and a CSS theming system are available for customizing CodeMirror to fit your application, and extending it with new functionality.

You can find more information (and themanual) on the project page. For questions and discussion, use thediscussion forum.

SeeCONTRIBUTING.mdfor contributing guidelines.

The CodeMirror community aims to be welcoming to everybody. We use theContributor Covenant (1.1) as our code of conduct.

Installation

Either get the zip file with the latest version, or make sure you have Nodeinstalled and run:

npm install codemirror

NOTE: This is the source repository for the library, and not the distribution channel. Cloning it is not the recommended way to install the library, and will in fact not work unless you also run the build step.

Quickstart

To build the project, make sure you have Node.js installed (at least version 6) and then

npm install

. To run, just open

index.html

in your browser (you don't need to run a webserver). Run the tests with

npm test

.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.