core/api/soft/ace/ace-master/tool
root a8795353a6 Заказы 2023-08-14 07:15:58 +03:00
..
templates Заказы 2023-08-14 07:15:58 +03:00
tmthemes Заказы 2023-08-14 07:15:58 +03:00
Readme.md Заказы 2023-08-14 07:15:58 +03:00
add_mode.js Заказы 2023-08-14 07:15:58 +03:00
esm_resolver_generator.js Заказы 2023-08-14 07:15:58 +03:00
lib.js Заказы 2023-08-14 07:15:58 +03:00
mode_creator.html Заказы 2023-08-14 07:15:58 +03:00
mode_creator.js Заказы 2023-08-14 07:15:58 +03:00
package.json Заказы 2023-08-14 07:15:58 +03:00
perf-test.html Заказы 2023-08-14 07:15:58 +03:00
regexp_to_keywords.js Заказы 2023-08-14 07:15:58 +03:00
regexp_tokenizer.js Заказы 2023-08-14 07:15:58 +03:00
regexp_tokenizer_test.js Заказы 2023-08-14 07:15:58 +03:00
tmlanguage.js Заказы 2023-08-14 07:15:58 +03:00
tmsnippets.js Заказы 2023-08-14 07:15:58 +03:00
tmtheme.js Заказы 2023-08-14 07:15:58 +03:00
unicode.js Заказы 2023-08-14 07:15:58 +03:00
update_deps.js Заказы 2023-08-14 07:15:58 +03:00
wrap_keyword_regexp.js Заказы 2023-08-14 07:15:58 +03:00

Readme.md

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

update_deps.js

To update jshint to new version:

  1. Clone last version from https://github.com/jshint/jshint
  2. Replace all lodash with underscore in requires in jshint/src/*.js
  3. Add _.slice = require("lodash.slice"); to src/scope-manager.js after var _ = ...
  4. Add _.clone = require("lodash.clone"); to src/jshint.js after var _ = ...
  5. Add "underscore": latest "lodash.clone": "^4.5.0", "lodash.slice": "^4.2.0" to package.json, remove lodash and run npm i
  6. Change in ace/tool/update_deps.js jshint path deps.jshint.browserify.path with your path to changed jshint
  7. Run node update_deps.js jshint