mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 22:02:55 +01:00
9 lines
355 B
JavaScript
9 lines
355 B
JavaScript
// The Monaco Editor can be easily created, given an
|
|
// empty container and an options literal.
|
|
// Two members of the literal are "value" and "language".
|
|
// The editor takes the full size of its container.
|
|
|
|
monaco.editor.create(document.getElementById('container'), {
|
|
value: "function hello() {\n\talert('Hello world!');\n}",
|
|
language: 'javascript'
|
|
});
|