the post editor (and liquid editor and lua editor) need syntax highlighting #57
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I thought that was there, but the editors are plain white on black instead of syntax highlighted. That needs to be added, the old bDS2 app had it, too.
Implemented in
e6fa506. Added dedicated Markdown-with-macros and Liquid Syntect grammars, retained Lua syntax parsing, and translated the editor palette to the bDS2/VS Dark colors. Markdown coverage includes headings, links, inline and fenced code, strong/emphasis, lists, quotes, and bDS macros; Liquid covers HTML, output expressions, tags, filters, values, and comments. Added token-level and palette regression tests and updated README. Verified against the bDS2 Monaco language/theme definitions and the Allium post/template/script editor guarantees. Verification passed: cargo test -p bds-editor --lib (50 tests), cargo test --workspace, cargo build --workspace, and native macOS visual checks of Lua, Liquid/HTML, and a real Markdown post link.