|
hace 9 años | |
---|---|---|
.vscode | hace 9 años | |
src | hace 9 años | |
test | hace 9 años | |
.gitignore | hace 9 años | |
.npmignore | hace 9 años | |
LICENSE.md | hace 9 años | |
README.md | hace 9 años | |
ThirdPartyNotices.txt | hace 9 años | |
gulpfile.js | hace 9 años | |
package.json | hace 9 años | |
tsconfig.json | hace 9 años |
Colorization and configuration supports for multiple languages for the Monaco Editor:
This npm module is bundled and distributed in the monaco-editor npm module.
npm install .
npm run watch
npm run test
Uncaught Error: Evaluating node_modules/monaco-editor-core/dev/vs/nls.js as module "vs/nls" failed with error: TypeError: Cannot read property 'Plugin' of undefined
you must edit for now $/node_modules/monaco-editor-core/dev/vs/nls.js
and around line 27 use var global = _nlsPluginGlobal || {};
. A fix will come soon.npm run prepublish
$/src/monaco-languages
$/src/monaco-languages> npm run watch
$/src/monaco-editor
$/src/monaco-editor> npm run simpleserver
$/src/monaco-editor/test/index.html
and set RUN_PLUGINS_FROM_SOURCE['monaco-languages'] = true;
monaco-editor-core
.$/src/vscode/
gulp watch
$/src/monaco-editor/test/index.html
and set var RUN_EDITOR_FROM_SOURCE = true;
$/src/myLang.ts
$/test/myLang.test.ts
$> node_modules/.bin/tscg .
$> npm run watch
edit $/src/monaco.contribution.ts
and register your new language:
registerLanguage({
id: 'sql',
extensions: [ '.sql' ],
aliases: [ 'SQL' ],
module: './sql'
});
edit $/test/all.js
and load your new language while testing
'out/test/sql.test',
edit $/gulpfile.js
and ship your new language
bundleOne('src/sql'),