Codemirror problem with clike langs #686

Closed
opened 2026-02-04 21:51:31 +03:00 by OVERLORD · 4 comments
Owner

Originally created by @l0co on GitHub (May 19, 2018).

In BookStack Version: from solidnerd/bookstack:0.21.0 docker codemirror syntax highlight doesn't work with clike languages. Check the video attached.

codemirror-clike.mp4.gz

Originally created by @l0co on GitHub (May 19, 2018). In BookStack Version: from `solidnerd/bookstack:0.21.0` docker codemirror syntax highlight doesn't work with clike languages. Check the video attached. [codemirror-clike.mp4.gz](https://github.com/BookStackApp/BookStack/files/2019398/codemirror-clike.mp4.gz)
OVERLORD added the 🛠️ Enhancement🐛 Bug labels 2026-02-04 21:51:31 +03:00
Author
Owner

@l0co commented on GitHub (May 19, 2018):

In this version I've added custom html head content to change theme to mbo to check if it helps, but it doesn't. However, it doesn't work in the same way without the custom theme.

@l0co commented on GitHub (May 19, 2018): In this version I've added custom html head content to change theme to `mbo` to check if it helps, but it doesn't. However, it doesn't work in the same way without the custom theme.
Author
Owner

@ssddanbrown commented on GitHub (May 19, 2018):

Thanks @l0co for reporting this.
I've marked up for the next release.

Dev reference

Looks like I'm not setting the mode properly for the codemirror instance, c-like langs need to be a little more specific. Bottom of the source of this page shows this:
https://codemirror.net/mode/clike/index.html

@ssddanbrown commented on GitHub (May 19, 2018): Thanks @l0co for reporting this. I've marked up for the next release. ### Dev reference Looks like I'm not setting the mode properly for the codemirror instance, c-like langs need to be a little more specific. Bottom of the source of this page shows this: https://codemirror.net/mode/clike/index.html
Author
Owner

@ssddanbrown commented on GitHub (May 20, 2018):

Now patched, Fix will be in the next release.

@ssddanbrown commented on GitHub (May 20, 2018): Now patched, Fix will be in the next release.
Author
Owner

@l0co commented on GitHub (May 20, 2018):

Thanks, I'm going to patch this docker anyway

@l0co commented on GitHub (May 20, 2018): Thanks, I'm going to patch this docker anyway
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#686