mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-25 22:41:36 +08:00
chore(code): enable syntax highlighting plugin
This commit is contained in:
parent
385809df84
commit
71218c0bd4
@ -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()
|
||||
];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user