Closed zixun closed 9 years ago
You need to use a highlighter like https://github.com/isagalaev/highlight.js.
@mdiep thank you~ but how to define the code's type in codeblock by MMMarkdown. I fond the markdown code ( such as ```objective-c ) is not work. '' haven't a class = 'objective-c' property~
Are you using MMMarkdownExtensionsFencedCodeBlocks
?
@mdiep NO! I use the no extensions API.if use the MMMarkdownExtensionsFencedCodeBlocks,it's also not work
It looks like the language field doesn't currently work if the language has a -
in the name. You can use objc
instead to work around this for now. But you'll still need to turn on fenced code blocks.
I find the code in codeblock from MMMarkdown can't be colored by common markdown-css file.
how can i color my code in codeblock with a css file