better-think-editor/index.html
Christian Lawson-Perfect 33769c8d1e set the language attribute for the code editor
I've also added the Elm highlighter from @codemirror/legacy-modes
2025-02-12 10:42:24 +00:00

41 lines
No EOL
1.2 KiB
HTML

<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>Elm app by clp</title>
<link rel="stylesheet" href="dist/think-editor.css">
</head>
<body>
<p>Think editor test page</p>
<p>It's loading!</p>
<script id="think-editor-data" type="application/json">
{
"preview_url": "https://somethingorotherwhatever.com/tiny-elvis/",
"slug": "loaded-thing",
"files": [
{"path": ".", "is_dir": true, "name": ".."},
{"path": "src/poo.elm", "is_dir": false, "name": "poo.elm"},
{"path": "src/poo.js", "is_dir": false, "name": "poo.js"},
{"path": "src/poo.py", "is_dir": false, "name": "poo.py"}
],
"file_path": "src/poo.js",
"is_dir": false,
"file_content": "function x() {\n return 1;\n}",
"csrf_token": "arg",
"elm_packages": [
{
"name": "poo",
"summary": "poop",
"version": "1",
"license": "p"
}
]
}
</script>
<script src="dist/think-editor.js"></script>
<script src="test.mjs" type="module"></script>
</body>
</html>