# AsciiDoc mode for CodeMirror

This repository contains the AsciiDoc mode for CodeMirror.

## Installation

```
$ npm install codemirror-asciidoc
```

## Usage

```js
var codemirror = require("codemirror/lib/codemirror"),
  codemirror_asciidoc = require("codemirror-asciidoc/lib/asciidoc");

codemirror.fromTextArea(document.getElementById("editor"), {
  lineNumbers: true,
  lineWrapping: true,
  mode: "asciidoc"
});
```

## License

BSD

## Credits

The AsciiDoc mode for CodeMirror was generated from the AsciiDoc mode for Ace using the https://github.com/espadrine/ace2cm[ace2cm] project by https://github.com/espadrine[Thaddee Tyl].

# AsciiDoc mode for CodeMirror

This repository contains the AsciiDoc mode for CodeMirror.

## Installation

```
$ npm install codemirror-asciidoc
```

## Usage

```js
var codemirror = require("codemirror"),
  codemirror_asciidoc = require("codemirror-asciidoc");

codemirror.fromTextArea(document.getElementById("editor"), {
  lineNumbers: true,
  lineWrapping: true,
  mode: "asciidoc"
});
```

## License

BSD

## Credits

The AsciiDoc mode for CodeMirror was generated from the AsciiDoc mode for Ace using the https://github.com/espadrine/ace2cm[ace2cm] project by https://github.com/espadrine[Thaddee Tyl].

Simplify import path for modules
Simplify import path for modules