/codemirror-asciidoc

AsciiDoc mode for CodeMirror

Primary LanguageJavaScriptBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

AsciiDoc mode for CodeMirror

This repository contains the AsciiDoc mode for CodeMirror.

Installation

$ npm install codemirror-asciidoc

Usage

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 ace2cm project by Thaddee Tyl.