You can now pass more than one .tmLanguage file to tmlanguage.js and it will process each one in turn. This can vastly speed up the processing of multiple files as you don't have to pay the node/V8 startup cost for each file. Note that the script's "dev mode" is now controlled by a --dev flag rather than an unnamed second argument. |
||
|---|---|---|
| .. | ||
| templates | ||
| tmthemes | ||
| add_mode.js | ||
| lib.js | ||
| mode_creator.html | ||
| mode_creator.js | ||
| package.json | ||
| perf-test.html | ||
| Readme.md | ||
| regexp_tokenizer.js | ||
| regexp_tokenizer_test.js | ||
| release.sh | ||
| tmlanguage.js | ||
| tmsnippets.js | ||
| tmtheme.js | ||
| update_deps.js | ||
| wrap_keyword_regexp.js | ||
Helper Scripts for Ace
To use this you need to install node.js. and run npm install in this directory.
add_mode.js
Run
node add_mode.js ModeName "extension1|extension2|^FullName"
to create all the files needed for a new mode named ModeName
this adds stubs for:
ace/mode/mode_name.js
ace/mode/mode_name_hightlight_rules.js
ace/snippets/mode_name.js
ace/demo/kitchen_sink/docs/mode_name.extension1
and adds entry for the new mode to ace/ext/modelist.js
tmlanguage.js
node tmlanguage.js ./templates/dummy.JSON-tmLanguage