mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
[GH-ISSUE #7775] Add support for additional syntax highlighting definitions #14885
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?
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
xojobut 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.jsmaintainers 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.