Skip to content
This repository has been archived by the owner on Nov 5, 2021. It is now read-only.

readme: align "add new language" example #70

Merged
merged 1 commit into from Sep 19, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 6 additions & 3 deletions README.md
Expand Up @@ -75,14 +75,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