Jump to content

CodeMirror

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by 180.168.166.27 (talk) at 02:52, 17 November 2016. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

CodeMirror
Developer(s)Marijn Haverbeke
Stable release
5.20.0 / October 20, 2016; 8 years ago (2016-10-20)[1]
Repository
Written inJavaScript
PlatformWeb
TypeSource code editor
LicenseMIT
Websitecodemirror.net

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

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.[2]

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 [3] along the same principles. The result was version 2, which no longer relied on contentEditable and significantly improved performance.

Features

Projects using CodeMirror

See also

References

  1. ^ "CodeMirror: Release History".
  2. ^ "Implementing a Syntax-Highlighting JavaScript Editor—in JavaScript". 2007-05-24.
  3. ^ "CodeMirror 2 has entered beta". 2011-02-08.
  4. ^ CodeMirror list of language modes "CodeMirror list of language modes". {{cite web}}: Check |url= value (help)