mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 15:05:39 +01:00
Update README.md
This commit is contained in:
parent
e83992b95d
commit
331b09c796
1 changed files with 6 additions and 6 deletions
12
README.md
12
README.md
|
|
@ -54,22 +54,22 @@ This npm module is bundled and distributed in the [monaco-editor](https://www.np
|
||||||
* update tsconfig.json with `$> node_modules/.bin/tscg .`
|
* update tsconfig.json with `$> node_modules/.bin/tscg .`
|
||||||
* restart compilation with `$> npm run watch`
|
* restart compilation with `$> npm run watch`
|
||||||
* edit `$/src/monaco.contribution.ts` and register your new language:
|
* edit `$/src/monaco.contribution.ts` and register your new language:
|
||||||
```js
|
```js
|
||||||
registerLanguage({
|
registerLanguage({
|
||||||
id: 'sql',
|
id: 'sql',
|
||||||
extensions: [ '.sql' ],
|
extensions: [ '.sql' ],
|
||||||
aliases: [ 'SQL' ],
|
aliases: [ 'SQL' ],
|
||||||
module: './sql'
|
module: './sql'
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
* edit `$/test/all.js` and load your new language while testing
|
* edit `$/test/all.js` and load your new language while testing
|
||||||
```js
|
```js
|
||||||
'out/test/sql.test',
|
'out/test/sql.test',
|
||||||
```
|
```
|
||||||
* edit `$/gulpfile.js` and ship your new language
|
* edit `$/gulpfile.js` and ship your new language
|
||||||
```js
|
```js
|
||||||
bundleOne('src/sql'),
|
bundleOne('src/sql'),
|
||||||
```
|
```
|
||||||
|
|
||||||
## Code of Conduct
|
## Code of Conduct
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue