left4me/l4d2web/scripts/editor-src
mwiegand 5289ae307f
feat(editor-v2): light + dark themes + syntax highlight style
themes.js exports four extensions:
- editorLightTheme / editorDarkTheme: EditorView.theme() variants
  keyed to the --cm-* CSS variables defined in tokens.css (light) and
  its prefers-color-scheme: dark block.
- editorHighlightStyle: HighlightStyle bound to Lezer tags
  (comment, string, number, keyword, variableName).
- editorHighlighting: syntaxHighlighting(editorHighlightStyle) ready
  to drop into the EditorState extensions array.

@lezer/highlight comes in transitively via @codemirror/language;
no new package.json dependency needed.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-17 01:56:26 +02:00
..
.gitignore scaffold(editor-v2): pin cm6 deps + editor-src skeleton 2026-05-17 01:54:06 +02:00
editor-entry.js scaffold(editor-v2): pin cm6 deps + editor-src skeleton 2026-05-17 01:54:06 +02:00
package-lock.json scaffold(editor-v2): pin cm6 deps + editor-src skeleton 2026-05-17 01:54:06 +02:00
package.json scaffold(editor-v2): pin cm6 deps + editor-src skeleton 2026-05-17 01:54:06 +02:00
srccfg-mode.js feat(editor-v2): srccfg StreamLanguage mode 2026-05-17 01:55:59 +02:00
themes.js feat(editor-v2): light + dark themes + syntax highlight style 2026-05-17 01:56:26 +02:00