Syntax highlighting and formatting #16706
bjarnef
started this conversation in
Features and ideas
Replies: 0 comments 1 reply
-
I came across https://shiki.matsu.io/ for syntax highlighting which has integration with Monaco editor allowing to use Shiki's syntax highlighting engine to highlight Monaco: https://shiki.matsu.io/packages/monaco @iOvergaard @nielslyngsoe some thoughts, which may be relevant regarding themes in backoffice. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the current backoffice we have a
<umb-code-snippet>
component, which doesn't really highlight or format the code snippet.When I added it back in the days I considered Prism or highlightjs, but we didn't want to include another library at that time.
We could probably have had a readonly instance of Ace Editor.
In the new backoffice the code editor is replaced by Monaco editor
I wonder if we can use the as code formatting or any other lightweight library for code formatting and syntax highlighting? I think it could be useful in packages showing a code snippet or maybe some help to more technical content editors.
https://stackoverflow.com/questions/52700307/how-to-use-monaco-editor-for-syntax-highlighting
Beta Was this translation helpful? Give feedback.
All reactions