mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-05 09:00:11 +00:00
Adds highlight on current indentation mark to code editor (#21972)
* Adds highlight on current indentation mark to code editor * code review
This commit is contained in:
@@ -180,6 +180,14 @@ export class HaCodeEditor extends ReactiveElement {
|
||||
this._loadedCodeMirror.crosshairCursor(),
|
||||
this._loadedCodeMirror.highlightSelectionMatches(),
|
||||
this._loadedCodeMirror.highlightActiveLine(),
|
||||
this._loadedCodeMirror.indentationMarkers({
|
||||
thickness: 0,
|
||||
activeThickness: 1,
|
||||
colors: {
|
||||
activeLight: "var(--secondary-text-color)",
|
||||
activeDark: "var(--secondary-text-color)",
|
||||
},
|
||||
}),
|
||||
this._loadedCodeMirror.keymap.of([
|
||||
...this._loadedCodeMirror.defaultKeymap,
|
||||
...this._loadedCodeMirror.searchKeymap,
|
||||
|
||||
Reference in New Issue
Block a user