Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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?

http://en.support.wordpress.com/code/posting-source-code/

share|improve this question

1 Answer 1

up vote 1 down vote accepted

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.