mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 11:35:40 +01:00
Merge pull request #70 from larshp/guide
readme: align "add new language" example
This commit is contained in:
commit
ee734dd791
1 changed files with 6 additions and 3 deletions
|
|
@ -76,14 +76,17 @@ This npm module is bundled and distributed in the [monaco-editor](https://www.np
|
||||||
* create `$/src/myLang/myLang.ts`
|
* create `$/src/myLang/myLang.ts`
|
||||||
* create `$/src/myLang/myLang.test.ts`
|
* create `$/src/myLang/myLang.test.ts`
|
||||||
* 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
|
||||||
|
import './myLang/myLang.contribution';
|
||||||
|
```
|
||||||
* edit `$/test/setup.js` and load your new language while testing
|
* edit `$/test/setup.js` and load your new language while testing
|
||||||
```js
|
```js
|
||||||
'release/dev/sql/sql.test',
|
'release/dev/myLang/myLang.test',
|
||||||
```
|
```
|
||||||
* edit `$/scripts/bundle.js` and ship your new language
|
* edit `$/scripts/bundle.js` and ship your new language
|
||||||
```js
|
```js
|
||||||
bundleOne('sql/sql'),
|
bundleOne('myLang/myLang');
|
||||||
```
|
```
|
||||||
|
|
||||||
## Code of Conduct
|
## Code of Conduct
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue