Update printWidth to 100

This commit is contained in:
Alex Dima 2020-09-21 14:31:41 +02:00
parent 365af6fa65
commit c5586a25cf
No known key found for this signature in database
GPG key ID: 6E58D7B045760DA0
24 changed files with 81 additions and 207 deletions

View file

@ -5,10 +5,7 @@
</head>
<body>
<h2>Monaco Editor Localization Sample</h2>
<div
id="container"
style="width: 800px; height: 600px; border: 1px solid grey"
></div>
<div id="container" style="width: 800px; height: 600px; border: 1px solid grey"></div>
<script src="../node_modules/monaco-editor/min/vs/loader.js"></script>
<script>
@ -23,17 +20,10 @@
});
require(['vs/editor/editor.main'], function () {
var editor = monaco.editor.create(
document.getElementById('container'),
{
value: [
'function x() {',
'\tconsole.log("Hello world!");',
'}'
].join('\n'),
language: 'javascript'
}
);
var editor = monaco.editor.create(document.getElementById('container'), {
value: ['function x() {', '\tconsole.log("Hello world!");', '}'].join('\n'),
language: 'javascript'
});
});
</script>
</body>