[GH-ISSUE #7775] Add support for additional syntax highlighting definitions #14885

Closed
opened 2026-04-19 21:08:30 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @gkjpettet on GitHub (Dec 11, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/7775

Feature Request

Is your feature request related to a problem? Please describe.
I use an LLM to help me code in a little-known programming language called Xojo. Code examples output by the model correctly produce Markdown code fences flagged as xojo but the syntax highlighter used by Open WebUI does not support this language natively.

Describe the solution you'd like
I have written a language definition for highlight.js (which is what I believe Open WebUI uses to highlight code) but I need a way to inject this JS into WebUI so my language will be highlighted.

Describe alternatives you've considered
There isn't a good alternative. The highlight.js maintainers are no longer accepting new syntax definitions so I can't add it to core. They have suggested a separate repo for each language (which I have) but I still need a way in WebUI to inject the definition JS.

Originally created by @gkjpettet on GitHub (Dec 11, 2024). Original GitHub issue: https://github.com/open-webui/open-webui/issues/7775 # Feature Request **Is your feature request related to a problem? Please describe.** I use an LLM to help me code in a little-known programming language called Xojo. Code examples output by the model correctly produce Markdown code fences flagged as `xojo` but the syntax highlighter used by Open WebUI does not support this language natively. **Describe the solution you'd like** I have written a language definition for `highlight.js` (which is what I believe Open WebUI uses to highlight code) but I need a way to inject this JS into WebUI so my language will be highlighted. **Describe alternatives you've considered** There isn't a good alternative. The `highlight.js` maintainers are no longer accepting new syntax definitions so I can't add it to core. They have suggested a separate repo for each language (which I have) but I still need a way in WebUI to inject the definition JS.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#14885