Skip to content

Commit

Permalink
Merge pull request microsoft#70 from larshp/guide
Browse files Browse the repository at this point in the history
readme: align "add new language" example
  • Loading branch information
alexdima committed Sep 19, 2019
2 parents 577406a + 727d782 commit ee734dd
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.md
Expand Up @@ -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.test.ts`
* 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
```js
'release/dev/sql/sql.test',
'release/dev/myLang/myLang.test',
```
* edit `$/scripts/bundle.js` and ship your new language
```js
bundleOne('sql/sql'),
bundleOne('myLang/myLang');
```

## Code of Conduct
Expand Down

0 comments on commit ee734dd

Please sign in to comment.