chore(code): enable syntax highlighting plugin

This commit is contained in:
Elian Doran 2025-05-10 21:38:12 +03:00
parent 385809df84
commit 71218c0bd4
No known key found for this signature in database

View File

@ -1,5 +1,6 @@
import { defaultKeymap, indentWithTab } from "@codemirror/commands";
import { EditorView, keymap, lineNumbers, ViewUpdate, type EditorViewConfig, type KeyBinding } from "@codemirror/view";
import { defaultHighlightStyle, syntaxHighlighting } from "@codemirror/language";
type ContentChangedListener = () => void;
@ -17,6 +18,7 @@ export default class CodeMirror extends EditorView {
...defaultKeymap,
indentWithTab
]),
syntaxHighlighting(defaultHighlightStyle),
lineNumbers()
];