I've started using Vim and VimRepress plugin to blog. My blog is on Wordpress.com - so I cannot install plugins etc. A lot of my posts have code snippets in them - and in Markdown syntax, I indent them 4 spaces so they get rendered as a pre/code tag. Is there anyway to mimic the behavior of the Wordpress.com [sourcecode] tag so I can get proper syntax highlighted code snippets in my blog posts?


1 Answer 1


So, I've discovered that the WP.com [sourcecode language="xxx"] tags work with markdown/VimRepress with a caveat - Dont have any empty lines in the code. It may work properly with 4 spaces on the line - but haven't tried that yet.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .