Skip to content

Commit 18319b5

Browse files
committed
refactor: replace hand-rolled script editor with CodeMirror 6
The custom textarea + line-gutter implementation had a CSS bug where content was invisible when opening the modal. Replace with CodeMirror 6 which provides line numbers, shell syntax highlighting, tab handling, and dark/light theme support out of the box.
1 parent def6fb1 commit 18319b5

File tree

4 files changed

+381
-111
lines changed

4 files changed

+381
-111
lines changed

package-lock.json

Lines changed: 181 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@
3535
"wrangler": "^4.61.1"
3636
},
3737
"dependencies": {
38-
"@cf-wasm/resvg": "^0.3.3"
38+
"@cf-wasm/resvg": "^0.3.3",
39+
"@codemirror/language": "^6.12.2",
40+
"@codemirror/legacy-modes": "^6.5.2",
41+
"@codemirror/theme-one-dark": "^6.1.3",
42+
"codemirror": "^6.0.2",
43+
"svelte-codemirror-editor": "^2.1.0"
3944
}
4045
}

0 commit comments

Comments
 (0)