Added own twig/smarty packages for cm6 lang support

This commit is contained in:
Dan Brown
2023-03-21 20:53:35 +00:00
parent c81cb6f2af
commit dce5123452
6 changed files with 89 additions and 4 deletions

View File

@ -6,6 +6,8 @@ import {defaultHighlightStyle, syntaxHighlighting, bracketMatching,
import {defaultKeymap, history, historyKeymap} from "@codemirror/commands"
import {EditorState} from "@codemirror/state"
import {defaultLight} from "./themes";
export function viewer() {
return [
lineNumbers(),
@ -14,7 +16,7 @@ export function viewer() {
history(),
drawSelection(),
dropCursor(),
syntaxHighlighting(defaultHighlightStyle, {fallback: true}),
syntaxHighlighting(defaultLight, {fallback: true}),
bracketMatching(),
rectangularSelection(),
highlightActiveLine(),