Merge pull request #3596 from microsoft/hediet/latin-deer

Improves hello world example
This commit is contained in:
Henning Dieterichs 2023-02-24 11:40:39 +01:00 committed by GitHub
commit 9cb6000aba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,9 +1,10 @@
// 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.
const text = `function hello() {
alert('Hello world!');
}`;
// Hover on each property to see its docs!
monaco.editor.create(document.getElementById("container"), {
value: "function hello() {\n\talert('Hello world!');\n}",
value: text,
language: "javascript",
automaticLayout: true,
});