More Languages for Highlighter
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.
Hi @Hoffenbar,
Thanks for your request. I will add it as a good first issue. I guess this can be done pretty easy.
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.