CodeMirror logo


A versatile text editor implemented in JavaScript for the browser

What is CodeMirror?

CodeMirror is a JavaScript component that provides a code editor in the browser. When a mode is available for the language you are coding in, it will color your code, and optionally help with indentation.
CodeMirror is a tool in the Text Editor category of a tech stack.
CodeMirror is an open source tool with GitHub stars and GitHub forks. Here’s a link to CodeMirror's open source repository on GitHub

Who uses CodeMirror?

154 companies reportedly use CodeMirror in their tech stacks, including Deloitte, Morgan Stanley, and Flutterwave.

145 developers on StackShare have stated that they use CodeMirror.

CodeMirror Integrations

Sublime Text, Vim, Emacs, Google Chrome, and Firefox are some of the popular tools that integrate with CodeMirror. Here's a list of all 8 tools that integrate with CodeMirror.
Pros of CodeMirror
Integrable in your application
Better content manipulation methods
Easy Custom Mode
JavaScript based
Easy setup

Blog Posts


CodeMirror's Features

  • Support for over 60 languages out of the box
  • A powerful, composable language mode system
  • Autocompletion (XML)
  • Code folding
  • Configurable keybindings
  • Vim, Emacs, and Sublime Text bindings
  • Search and replace interface
  • Bracket and tag matching
  • Support for split views
  • Linter integration
  • Mixing font sizes and styles
  • Various themes
  • Able to resize to fit content
  • Inline and block widgets
  • Programmable gutters
  • Making ranges of text styled, read-only, or atomic
  • Bi-directional text support

CodeMirror Alternatives & Comparisons

What are some alternatives to CodeMirror?
Ace is a standalone code editor written in JavaScript. Our goal is to create a browser based editor that matches and extends the features, usability and performance of existing native editors such as TextMate, Vim or Eclipse. It can be easily embedded in any web page or JavaScript application.
It is the most advanced WYSWIYG HTML editor designed to simplify website content creation. The rich text editing platform that helped launch Atlassian, Medium, Evernote, and more.
It is a lightweight, beautiful and extensible syntax highlighter, built with modern web standards in mind. It’s used in thousands of websites, including some of those you visit daily.
Visual Studio Code
Build and debug modern web and cloud applications. Code is free and available on your favorite platform - Linux, Mac OSX, and Windows.
Sublime Text
Sublime Text is available for OS X, Windows and Linux. One license is all you need to use Sublime Text on every computer you own, no matter what operating system it uses. Sublime Text uses a custom UI toolkit, optimized for speed and beauty, while taking advantage of native functionality on each platform.
See all alternatives

CodeMirror's Followers
217 developers follow CodeMirror to keep up with related blogs and decisions.