Can't write Coffeescript code via markdown
-
I’m trying to write a Coffeescript code in my blog posts using the markdown, I was writing it like this:
`coffeescript
# code here
`but it didn’t get rendered as a code at all, it is very annoying to have to write it as a javascript code to be highlighted well.
The blog I need help with is: (visible only to logged in users)
-
Hi!
Currently, coffeescript syntax highlighting is not supported on WordPress.com. You can find a list of support languages here:
http://en.support.wordpress.com/code/posting-source-code/
I’ll add that to the list for future ideas though!
-
Thanks for the quick response,
kindly, I hope you can support it soon, because it is a widely known language used by a lot of people.
but on the other hand, I think if a language isn’t supported you guys should fallback to leaving the code block as is without any highlighting, but removing the block style & making the code look like the rest of the post is a very bad choice,
I hope you can make that fallback option soon enough. -
Ah – thanks for pointing that out. I’ll do some digging and see what we can do. I believe the code for this is pulled from the following WordPress.org plugin (which doesn’t appear to support fallbacks):
-
I think it would be better if you switched to another widely used plugin like this one https://wordpress.org/plugins/crayon-syntax-highlighter/
Crayon syntax highlighter has a support for many languages (including coffeescript :) ) , and has a “Default Language” for generic code (the fallback we are talking about here)
I think bloggers with a technical background will highly appreciate this kind of change .. I don’t like the current highlighting anyway :)
-
-
By the way, I really hope to see the default style for the code blocks to be a github-like style, we just need something simple & effective to ease the readability
Thanks guys, & I hope to see these positive changes soon.
- The topic ‘Can't write Coffeescript code via markdown’ is closed to new replies.