[mod] tidy

This commit is contained in:
Andy Bunce 2026-02-22 12:17:47 +00:00
parent ebcb1b2c57
commit afe98e48e2
10 changed files with 2561 additions and 2595 deletions

View file

@ -0,0 +1,26 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Monaco LSP - Vanilla JS</title>
<link rel="icon" type="image/png" href="../favicon.png" />
<link rel="stylesheet" href='./style.css' />
</head>
<body>
<div id="container" style="height: 400px;"></div>
<script type="module">
import { monaco } from "https://cdn.jsdelivr.net/npm/monaco-editor-esm-cdn/monaco.js";
monaco.editor.create(document.getElementById("container"), {
value: `function x() {\n\tconsole.log("Hello world!");\n}`,
language: "xquery",
});
</script>
</body>
</html>

View file

@ -0,0 +1,10 @@
/* style.css */
body {
background-color: #242424;
}
#editor {
margin: 10vh auto;
width: 720px;
height: 20vh;
}