Improved highlighting colours and selection ranges

This commit is contained in:
n1474335 2022-07-11 11:43:48 +01:00
parent 890f645eeb
commit 157dacb3a5
4 changed files with 50 additions and 36 deletions

View file

@ -12,7 +12,7 @@ import {toBase64} from "../../core/lib/Base64.mjs";
import {isImage} from "../../core/lib/FileType.mjs";
import {
EditorView, keymap, highlightSpecialChars, drawSelection, rectangularSelection, crosshairCursor
EditorView, keymap, highlightSpecialChars, drawSelection, rectangularSelection, crosshairCursor, dropCursor
} from "@codemirror/view";
import {EditorState, Compartment} from "@codemirror/state";
import {defaultKeymap, insertTab, insertNewline, history, historyKeymap} from "@codemirror/commands";
@ -93,6 +93,7 @@ class InputWaiter {
drawSelection(),
rectangularSelection(),
crosshairCursor(),
dropCursor(),
bracketMatching(),
highlightSelectionMatches(),
search({top: true}),