set the language attribute for the code editor

I've also added the Elm highlighter from @codemirror/legacy-modes
This commit is contained in:
Christian Lawson-Perfect 2025-02-09 20:29:06 +00:00
parent 90a3f2388b
commit 33769c8d1e
5 changed files with 37312 additions and 83 deletions

View file

@ -17,11 +17,13 @@
"slug": "loaded-thing",
"files": [
{"path": ".", "is_dir": true, "name": ".."},
{"path": "src/poo.elm", "is_dir": false, "name": "poo.elm"}
{"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.elm",
"file_path": "src/poo.js",
"is_dir": false,
"file_content": "this\nis\nmy\nfile",
"file_content": "function x() {\n return 1;\n}",
"csrf_token": "arg",
"elm_packages": [
{