mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 13:55:41 +01:00
Update README.md
This commit is contained in:
parent
1e3817ae55
commit
30868019d9
1 changed files with 3 additions and 1 deletions
|
|
@ -26,7 +26,9 @@ module.exports = {
|
||||||
|
|
||||||
* `index.js`:
|
* `index.js`:
|
||||||
```js
|
```js
|
||||||
import * as monaco from 'monaco-editor';
|
import * as monaco from 'monaco-editor'
|
||||||
|
// or import * as monaco from 'monaco-editor/esm/vs/editor/editor.api';
|
||||||
|
// if shipping only a subset of the features & languages is desired
|
||||||
|
|
||||||
monaco.editor.create(document.getElementById('container'), {
|
monaco.editor.create(document.getElementById('container'), {
|
||||||
value: 'console.log("Hello, world")',
|
value: 'console.log("Hello, world")',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue