[Ace Editor](https://ace.c9.io/) is a code editor written in JavaScript, allowing you to edit HTML,
PHP and JavaScript (and more). It provides syntax highlighting, proper
indentation, keyboard shortcuts, find and replace (including regular
expressions).
This module integrates the Ace editor into Drupal's node/block edit forms,
for editing raw HTML/PHP/JavaScript (with more) in a familiar way.
It also provides a display formatter, along with a text filter and
an API to embed and show code snippets in your content.
## Table of contents
- Requirements
- Installation
- Uninstallation
- Features
- Maintainers
## Requirements
This module requires the [ACE Editor JavaScript library](https://github.com/ajaxorg/ace-builds)
Please download any of the available builds of the latest version and **copy it under** _/libraries/_ so _ace.js_ file can be found under _{drupal_root}/libraries/{any-sub-dir}/ace.js_. Alternatively, use Composer, see "Installation" below.</li>
## Installation
Install with Composer (recommended) or manually, by following these steps.
[Downloading third-party libraries using Composer](https://www.drupal.org/docs/develop/using-composer/manage-dependencies#third-party-libraries)
### Install with Composer
Define npm-asset repository in the `composer.json`` file, to allow downloading the ACE Editor JavaScript library to the correct folder: