Skip to content

espadrine/ace2cm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ace to CodeMirror Converter

Convert your Ace syntax highlighter to CodeMirror!

Ace has a number of syntax sheets to provide support for those languages in their editor. CodeMirror does as well. However, Ace has some sheets that CodeMirror does not (and inversely).

This software translates Ace syntax sheets to CodeMirror's format.

Install

  • Download and extract
  • Navigate to folder cd ace2cm
  • Run npm install command to install required dependencies

Use

Either run make, or something like this:

node convert.js mode-name /path/to/ace-dir/ > generated-mode-file.js

The mode name is that of the Ace mode. If you want a different name for the CodeMirror mode name, you can specify it in another parameter:

node convert.js mode-name /path/to/ace-dir/ '{"modeName":"my-mode"}' > generated-mode-file.js

Related information

Under MIT license.

Portions of this project are covered by the BSD license of the Ace project. Find the license here: https://raw.githubusercontent.com/ajaxorg/ace/master/LICENSE.

About

Convert Ace highlight rules to the CodeMirror format.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published