Closed TechMaster closed 2 years ago
Have a look at the codeSyntaxHighlighting
option.
There are two highlight actions:
What I want is highlighting code block when editing markdown.
codeSyntaxHighlighting
is for previewing.
CodeMirror has no idea the code block is a code block until the markdown is parsed, so does not render it differently. I don't think it's possible to do without some editor hacking currently.
Thanks @Ionaru CodeMirror allows to highlight syntax code blocks in Markdown. I will try to modify your code and let you know if successfull.
@TechMaster I know it's been a few years, but is there any chance that you were successful? I need this very feature 😅
Hi,
I write a markdown article that has several code blocks of different programming languages. I want to hight light syntax of each code block in editor (WYSIWYG). What should I do ?
Do I need to customize CodeMirror or just configure EasyMDE?