CodeMirror explained

CodeMirror
Developer:Marijn Haverbeke
Programming Language:JavaScript
Platform:Web
Genre:Source code editor
License:MIT
Latest Release Version:6.0.1
Latest Release Date:[1]

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.

Version 6 was released in 2022.[4] [5] The library has been split into a collection of packages,[6] [7] and core packages are released independently.

See also

External links

Notes and References

  1. Web site: CodeMirror Changelog. 2023-06-30.
  2. Web site: Implementing a Syntax-Highlighting JavaScript Editor—in JavaScript. 2007-05-24.
  3. Web site: CodeMirror 2 has entered beta. 2011-02-08.
  4. Web site: Marijn. Haverbeke. CodeMirror 6.0 has been released. 2022-06-08.
  5. Web site: Marijn. Haverbeke. CodeMirror 6.0. 2022-06-08.
  6. Web site: CodeMirror 5 to 6 Migration Guide. 2023-06-30.
  7. Web site: CodeMirror System Guide. 2023-06-30.