Ace is a standalone JavaScript code editor you embed in web pages and apps, with syntax modes, themes, and editing features comparable to native editors.
Overview
Ace (Ajax.org Cloud9 Editor) is a standalone code editor written in JavaScript for use in the browser. It is designed to match and extend features of native editors such as TextMate, Vim, or Eclipse, and embeds into web pages or JavaScript applications.
It powers the Cloud9 IDE and succeeded the Mozilla Skywriter (Bespin) project. Syntax highlighting supports a large set of languages, with TextMate and Sublime `.tmlanguage` imports available. Themes include TextMate and Sublime `.tmtheme` imports.
Editing features include automatic indent, optional command line, search and replace with regular expressions, matching parentheses, soft or real tabs, hidden characters, drag and drop, line wrapping, code folding, multiple cursors, live syntax checking for some languages, and vim or Emacs key binding modes. It can handle very large documents.
You embed Ace by sizing a DOM element and calling `ace.edit`, with optional RequireJS loading, pre-packaged builds, CDN delivery, or local copies from ace-builds.
Key features
- Syntax highlighting for many languages
- Import TextMate language files
- Multiple editor themes
- Vim and Emacs keybindings
- Code folding and wrapping
- Regex search and replace
- Multiple cursors and selections
- Live syntax checker for some langs
Use cases
- In-browser code editing
- Web IDE components
- Textarea replacement
- Embedded documentation editors
- Live coding demos