leafwiki icon indicating copy to clipboard operation
leafwiki copied to clipboard

More Languages for Highlighter

Open Hoffenbar opened this issue 2 weeks ago • 2 comments

Title: Feature Request: Add syntax highlighting support for Tcl, Batch (.bat/.cmd), and INI files Description: Hi there, I really enjoy using LeafWiki for technical documentation and personal notes. The Problem / Motivation: Currently, fenced code blocks tagged with tcl, bat/cmd, or ini do not get syntax highlighting. Since these formats are widely used in Windows administration, automation, EDA tools, networking, and configuration documentation, adding syntax highlighting for them would make technical docs much more readable. Proposed Solution: Please extend the Markdown renderer's syntax highlighting configuration to include: • Tcl (identifiers: tcl, tk) • Windows Batch (identifiers: bat, cmd, batch, dos) • INI / Config files (identifiers: ini, cfg) Depending on the highlighting library used in the frontend, these languages are usually available as built-in grammars and just need to be imported/registered.

Hoffenbar avatar Nov 18 '26 21:11 Hoffenbar

Hi @Hoffenbar,

Thanks for your request. I will add it as a good first issue. I guess this can be done pretty easy.

perber avatar Nov 30 '26 16:11 perber

I have a small patch ready that registers the tcl and dos (bat, cmd) grammars; ini is already supported. I will open a PR for this issue. AI-assisted, tested locally.

openagents-bot avatar Nov 30 '26 23:11 openagents-bot