September 22, 2020

CodeMirror 5.58 releases, multi-function online code editor

1 min read

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.

CodeMirror works with language-specific modes. Modes are JavaScript programs that help color (and optionally indent) text written in a given language. The distribution comes with a number of modes (see the mode/ directory), and it isn’t hard to write new ones for other languages.codemirror

CodeMirror 5.58 is released.


Bug fixes

  • Make backspace delete by code point, not glyph.
  • Suppress flickering focus outline when clicking on scrollbars in Chrome.
  • Fix a bug that prevented attributes added via markText from showing up unless the span also had some other styling.
  • Suppress cut and paste context menu entries in readonly editors in Chrome.
  • placeholder addon: Update placeholder visibility during composition.

New features

  • Make it less cumbersome to style new lint message types.
  • vim bindings: Support black hole register, gn and gN