[GH-ISSUE #14889] feat: Allow Customization of Code Editor Block Theme #137119

Closed
opened 2026-05-25 06:16:25 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @yekanchi on GitHub (Jun 11, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/14889

Check Existing Issues

  • I have searched the existing issues and discussions.

Problem Description

allow customization of the theme of the code editor. it would be nice to use monaco code editor. and use separate theme for code editor rather than the surrounding theme.

Desired Solution you'd like

use monaco editor for code block. and allow importing custom styles.

Alternatives Considered

No response

Additional Context

No response

Originally created by @yekanchi on GitHub (Jun 11, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/14889 ### Check Existing Issues - [x] I have searched the existing issues and discussions. ### Problem Description allow customization of the theme of the code editor. it would be nice to use monaco code editor. and use separate theme for code editor rather than the surrounding theme. ### Desired Solution you'd like use monaco editor for code block. and allow importing custom styles. ### Alternatives Considered _No response_ ### Additional Context _No response_
Author
Owner

@silentoplayz commented on GitHub (Sep 16, 2025):

Related - https://github.com/open-webui/open-webui/pull/17396

<!-- gh-comment-id:3294633914 --> @silentoplayz commented on GitHub (Sep 16, 2025): Related - https://github.com/open-webui/open-webui/pull/17396
Author
Owner

@yekanchi commented on GitHub (Sep 16, 2025):

Related - #17396

would this replace codemirror with monaco editor?

<!-- gh-comment-id:3299632851 --> @yekanchi commented on GitHub (Sep 16, 2025): > Related - [#17396](https://github.com/open-webui/open-webui/pull/17396) would this replace codemirror with monaco editor?
Author
Owner

@silentoplayz commented on GitHub (Sep 18, 2025):

Related - #17396

would this replace codemirror with monaco editor?

No it would not, but it does allow for CodeMirror themes

(I zoomed out for a full list screenshot)
Image

<!-- gh-comment-id:3308413708 --> @silentoplayz commented on GitHub (Sep 18, 2025): > > Related - [#17396](https://github.com/open-webui/open-webui/pull/17396) > > would this replace codemirror with monaco editor? No it would not, but it does allow for [CodeMirror themes](https://www.npmjs.com/package/@uiw/codemirror-themes) (I zoomed out for a full list screenshot) <img width="567" height="855" alt="Image" src="https://github.com/user-attachments/assets/20af75eb-2e69-4003-bbbc-8f8554c6b190" />
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#137119