mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 10:25:42 +01:00
22 lines
613 B
Markdown
22 lines
613 B
Markdown
# Monaco Languages
|
|
|
|
Colorization and configuration supports for multiple languages for the Monaco Editor:
|
|
|
|

|
|
|
|
## Development
|
|
|
|
- watch with `npm run watch`
|
|
- compile with `npm run prepublishOnly`
|
|
- test with `npm run test`
|
|
|
|
## Dev: Adding a new language
|
|
|
|
- create `$/src/myLang/myLang.contribution.ts`
|
|
- create `$/src/myLang/myLang.ts`
|
|
- create `$/src/myLang/myLang.test.ts`
|
|
- edit `$/src/monaco.contribution.ts` and register your new language
|
|
|
|
```js
|
|
import './myLang/myLang.contribution';
|
|
```
|