This feature is on my "some day" list. The editor supports it, but weaving it in with the current markdown syntax highlighting presents some challenges.
I have the same question. This post shows how you can edit HTML template to enable Latex, and I made it work. Is there any way we can do this the same way? https://gohugo.io/tutorials/mathjax/
Mathjax is already enabled in Markdown Edit
Anyone succeeded integrating Syntax Highlighting Engine? I tried this: https://github.com/mike-ward/Markdown-Edit/issues/100 Had no success.
I think there's some confusion here. Syntax highlighting on the editor side is what I'm referring to. Syntax highlighting in the Preview (HTML) is a different issue. Preview gets refreshed every time the document changes. That means the syntax highlighting has to be reapplied. There's an event triggered when the preview updates.
Hi Mike, any chance to have this issue in the work: https://github.com/mike-ward/Markdown-Edit/issues/100? I really miss the Code Block Syntax Highlighting. Thank You.
I see. Is there an hand made solution for the meantime? Thank You.
GitHub markdown supports syntax highlighting. Would that work?
Where can I try it? Does it support C / C++ / MATLAB Syntax Highlighting? Thank You.
Hi, Hi tried: ```matlab Some Code.... Some Code.... Some Code.... ``` The PDF didn't yield any Syntax Highlighting. I will try for C as well. By the way, is there a way to integrate Syntax Highlighting for the Preview? Something like MathJax for the Math?
Turns out Pandoc does inject styling info into the code blocks but you have to generate the doc in `--standalone` mode to get the colors. I grabbed all the different code block styles Pandoc generates and put them in a [gist](https://gist.github.com/mike-ward/df355b23f4ee6c8cff05118c907c2cbf). Copy and paste into the head of you `user_template.html` and uncomment one of the style blocks. I'll add this to the default template in MDE.