Trisha Shetty (Editor)

CodeMirror

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit
Developer(s)
  
Marijn Haverbeke

Platform
  
Web

License
  
MIT

Written in
  
JavaScript

Type
  
Source code editor

CodeMirror

Stable release
  
5.24.2 / February 22, 2017; 13 days ago (2017-02-22)

CodeMirror is a JavaScript component that provides a code editor in the browser. It has a rich programming API and a focus on extensibility.

Contents

History

The first version of the editor was written early 2007, for the console in the Eloquent JavaScript website. The code was first packaged up and released under the name CodeMirror in May 2007. This version was based on the contentEditable feature of browsers.

In late 2010, the Ace project, another JavaScript-based code editor, pioneered new implementation techniques and demonstrated that it is possible, even in JavaScript, to handle documents with many thousands of lines without degraded performance. This prompted a rewrite of CodeMirror along the same principles. The result was version 2, which no longer relied on contentEditable and significantly improved performance.

Features

  • Syntax highlighting.
  • Auto indentation and outdent.
  • Handles huge documents (hundreds of thousands of lines) without trouble.
  • Customizable key bindings including Vi and Emacs modes.
  • A wide range of language modes.
  • Add-ons for autocompletion, code folding, integrated linting.
  • A broad programming API.
  • support for some mobile operating systems
  • Projects using CodeMirror

  • Adobe Brackets (code editor)
  • Codeanywhere
  • Codenvy
  • Gerrit Code Review
  • Google Chrome DevTools
  • ICECoder
  • Light Table (experimental IDE)
  • Mozilla's Firefox web console
  • SAP Screen Personas ( Script editor)
  • References

    CodeMirror Wikipedia