I'm new too Ace too, but it seems like what Michael said, node.js is
used to test and build Ace.
You just need to make changes to javascript.js and
javascript_highlight_rules.js in the lib folder like you suggested. No
need to change other files. You can also add a new mode with new file
names, like myLanguage.js and myLanguage_highlight_rules.js
Now you have 2 choice:
+ you can run Ace with node.js without packaging it. To do that check
out the readme file, "Running Ace" part. This is often used for
testing directly.
+ or just package it using Makefile.dryice.js (Michael posted, also in
the readme, "Package Ace" part). the result files will be in build/src
folder, and can run alone by added it to a html file. You can also do
testing with this.
If you're adding a totally new mode, you need to register it by:
+ if you're running Ace with node.js using the index.html, which is
the demo, you should modify demo/demo.js. Just copy other modes, like
this
var myLanguageMode = require("ace/mode/myLanguage").Mode;
+ if you're packaging Ace, modify Makefile.dryice.js. It's simple,
again, just look at how they did it with other modes (https://
github.com/ajaxorg/ace/blob/master/Makefile.dryice.js#L222)
If you have problem building, check if you have downloaded pilot and
cockpit in support folder.