Syntax Highlighting of Markdown Fenced Code Blocks

posted 2013-May-22

What: Add this to your Sublime Text editor Markdown.tmLanguage



Certain superset-Markdown converts (like kramdown) support denoting code blocks not only by indenting the code–a pain when copy-pasting code–but also by “fencing” the code blocks with 3 or more tildes:

Here is some code:

def foo()

The Markdown language bundle does not support this (since it’s not real Markdown) and so you don’t get proper syntax highlighting. Until you add the above.

net.mind details contact résumé other