Customize syntax highlighting using the plugin #2007
Unanswered
yishiyuntuan
asked this question in
Q&A
Replies: 1 comment 1 reply
-
You're using codemirror to render the code block. So you'll need add codemirror syntax highlight for mermaid. Something like https://www.npmjs.com/package/codemirror-lang-mermaid |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I want to use a plugin in Vue3 to achieve custom code syntax highlighting, following the example in the documentation, but it's not working. How can I modify the code to make it work?
The code theme is still the default onedark

shiki.js
Beta Was this translation helpful? Give feedback.
All reactions