Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the codeblock from MMMarkdown cant be colored #72

Closed
zixun opened this issue Jun 19, 2015 · 5 comments
Closed

the codeblock from MMMarkdown cant be colored #72

zixun opened this issue Jun 19, 2015 · 5 comments

Comments

@zixun
Copy link

zixun commented Jun 19, 2015

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

@mdiep
Copy link
Owner

mdiep commented Jun 19, 2015

You need to use a highlighter like https://github.com/isagalaev/highlight.js.

@mdiep mdiep closed this as completed Jun 19, 2015
@zixun
Copy link
Author

zixun commented Jun 19, 2015

@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~

@mdiep
Copy link
Owner

mdiep commented Jun 19, 2015

Are you using MMMarkdownExtensionsFencedCodeBlocks?

@zixun
Copy link
Author

zixun commented Jun 20, 2015

@mdiep NO! I use the no extensions API.if use the MMMarkdownExtensionsFencedCodeBlocks,it's also not work

@mdiep
Copy link
Owner

mdiep commented Jun 20, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants