Add ocaml as a supported language in codesample #2858

Closed
opened 2026-02-05 05:28:50 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @ericgaspar on GitHub (Jun 18, 2022).

Describe the feature you'd like

Add ocaml as a supported language in codesample

Describe the benefits this would bring to existing BookStack users

ocaml is the default language learned in French 'classes préparatoires' alongside C and Python

Can the goal of this request already be achieved via other means?

No

Have you searched for an existing open/closed issue?

  • I have searched for existing issues and none cover my fundemental request

How long have you been using BookStack?

1 to 5 years

Additional context

No response

Originally created by @ericgaspar on GitHub (Jun 18, 2022). ### Describe the feature you'd like Add ocaml as a supported language in codesample ### Describe the benefits this would bring to existing BookStack users ocaml is the default language learned in French 'classes préparatoires' alongside C and Python ### Can the goal of this request already be achieved via other means? No ### Have you searched for an existing open/closed issue? - [X] I have searched for existing issues and none cover my fundemental request ### How long have you been using BookStack? 1 to 5 years ### Additional context _No response_
OVERLORD added the 🔨 Feature Request label 2026-02-05 05:28:50 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Jun 18, 2022):

Looks already built-in, just needs to be added to code manager list.

Modemap might also need updating to use the mime-style modes defined here for full highlighting:
https://codemirror.net/5/mode/mllike/index.html

@ssddanbrown commented on GitHub (Jun 18, 2022): Looks [already built-in](https://github.com/BookStackApp/BookStack/blob/19d7e26dda84e75344c4915df28c04b597c8713a/resources/js/code.mjs#L74), just needs to be added to code manager list. Modemap might also need updating to use the mime-style modes defined here for full highlighting: https://codemirror.net/5/mode/mllike/index.html
Author
Owner

@ssddanbrown commented on GitHub (Jun 21, 2022):

Now added as of the changes within #3512.
Will be part of the next feature release.

@ssddanbrown commented on GitHub (Jun 21, 2022): Now added as of the changes within #3512. Will be part of the next feature release.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#2858