Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit 28aaa28

Browse files
committed
feat(code): integrate indentation markers
1 parent 3ace3d9 commit 28aaa28

File tree

4 files changed

+268
-261
lines changed

4 files changed

+268
-261
lines changed

docs/Release Notes/Release Notes/v0.94.0.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
* Code notes:
3434
* Added the GDScript (Godot) language.
3535
* Added the Nix language (and also in code blocks for text notes).
36+
* Added an indentation marker.
3637
* Mermaid diagrams: basic syntax highlight (not all diagram types are supported) and code folding.
3738
* Slight organization in Appearance settings: code block themes are now in "Text Notes", added a "Related settings" section in Appearance.
3839

packages/codemirror/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
"@fsegurai/codemirror-theme-volcano": "6.1.4",
5555
"@fsegurai/codemirror-theme-vscode-dark": "6.1.4",
5656
"@fsegurai/codemirror-theme-vscode-light": "6.1.4",
57+
"@replit/codemirror-indentation-markers": "6.5.3",
5758
"@replit/codemirror-lang-nix": "6.0.1",
5859
"@replit/codemirror-vim": "6.3.0",
5960
"@ssddanbrown/codemirror-lang-smarty": "1.0.0",

packages/codemirror/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { defaultHighlightStyle, StreamLanguage, syntaxHighlighting, indentUnit,
44
import { Compartment, EditorSelection, EditorState, type Extension } from "@codemirror/state";
55
import { highlightSelectionMatches } from "@codemirror/search";
66
import { vim } from "@replit/codemirror-vim";
7+
import { indentationMarkers } from "@replit/codemirror-indentation-markers";
78
import byMimeType from "./syntax_highlighting.js";
89
import smartIndentWithTab from "./extensions/custom_tab.js";
910
import type { ThemeDefinition } from "./color_themes.js";
@@ -62,6 +63,7 @@ export default class CodeMirror extends EditorView {
6263
bracketMatching(),
6364
lineNumbers(),
6465
foldGutter(),
66+
indentationMarkers(),
6567
indentUnit.of(" ".repeat(4)),
6668
keymap.of([
6769
...defaultKeymap,

0 commit comments

Comments
 (0)