Need advice about which tool to choose?Ask the StackShare community!

Ace

66
102
+ 1
7
CodeMirror

577
230
+ 1
15
Add tool

Ace vs CodeMirror: What are the differences?

Introduction

Ace and CodeMirror are two popular JavaScript libraries for creating code editors in web applications. While they both offer similar functionality, they have some key differences that set them apart. In this article, we will explore six main differences between Ace and CodeMirror.

1. Architecture:

Ace uses a single JavaScript file for its core, which makes it easier to integrate into a project. On the other hand, CodeMirror provides a modular architecture, allowing developers to include only the necessary components, resulting in a smaller file size.

2. Browser Support:

Ace has better browser support compared to CodeMirror. It is compatible with all major modern browsers, including Internet Explorer 10+. CodeMirror, on the other hand, may have limited support in older browsers.

3. Extensions and Plugins:

Ace has a rich ecosystem of extensions and plugins available, offering additional features and customization options. CodeMirror also has a good selection of extensions, but it may not be as extensive as Ace.

4. Performance:

When it comes to performance, CodeMirror is known for being more lightweight and faster compared to Ace. This can make a difference, especially when dealing with larger codebases or complex editing operations.

5. Community and Documentation:

Ace has a larger and more active community compared to CodeMirror. This means that there are more resources, discussions, and examples available for Ace. Additionally, Ace has comprehensive documentation, making it easier for developers to get started and find answers to their questions.

6. Customization Options:

Both Ace and CodeMirror offer a wide range of customization options, allowing developers to tailor the editor to their specific needs. However, Ace provides more out-of-the-box customization options and themes, making it easier to achieve a desired look and feel without additional coding.

In summary, Ace and CodeMirror differ in their architecture, browser support, extensions/plugins ecosystem, performance, community/documentation, and customization options. Each library has its strengths and weaknesses, and the choice between the two depends on the specific requirements of the project.

Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of Ace
Pros of CodeMirror
  • 4
    The best Editor out there
  • 1
    Non-microsoft
  • 1
    Javascript based
  • 1
    Faster to load and edit big files
  • 6
    Integrable in your application
  • 4
    Better content manipulation methods
  • 3
    Easy Custom Mode
  • 1
    JavaScript based
  • 1
    Easy setup

Sign up to add or upvote prosMake informed product decisions

- No public GitHub repository available -

What is Ace?

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.

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.

Need advice about which tool to choose?Ask the StackShare community!

What companies use Ace?
What companies use CodeMirror?
See which teams inside your own company are using Ace or CodeMirror.
Sign up for StackShare EnterpriseLearn More

Sign up to get full access to all the companiesMake informed product decisions

What tools integrate with Ace?
What tools integrate with CodeMirror?

Sign up to get full access to all the tool integrationsMake informed product decisions

Blog Posts

JavaScriptGitHubGit+33
20
2084
JavaScriptGitHubPython+42
53
21841
What are some alternatives to Ace and CodeMirror?
Zed
It is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter. It efficiently leverages every CPU core and your GPU to start instantly, load files in a blink, and respond to your keystrokes on the next display refresh.
Firepad
An open source collaborative code and text editor. Share documents and see changes occur in real-time.
Tandem
Tandem is a decentralized, collaborative text-editing solution. Tandem works with native text editors, works across different editors, and uses peer-to-peer connections to facilitate communication. Tandem exists as a set of plugins for native text editors. We currently support Sublime Text 3 and Neovim. We also unofficially support Vim.
Graphite Docs
Graphite enables convenient, secure, decentralized, and user-owned file creation, file storage, communication, and sharing.
Rustpad
It is an efficient and minimal open-source collaborative text editor based on the operational transformation algorithm. It lets users collaborate in real-time while writing code in their browser. It is completely self-hosted and fits in a tiny Docker image, no database required.
See all alternatives