WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to write code in my wordpress blog. which is hosted in wordpress.com. I need a Syntax Highlighter to show code. Can I configure/add Plugin in wordpress.com config panel ? or I do need a self hosted blog ?

share|improve this question

you can use the [sourcecode] shortcode on WordPress.com which is built in for you, no need to install or configure anything.

For example to get this results :

enter image description here

just wrap your code in these tags:

[sourcecode language="css"]
your code here

you can see a list of supported languages and a few other parameters you can use with this shortcode at http://en.support.wordpress.com/code/posting-source-code/

share|improve this answer
But IT makes all my < and > to &lt; and &gt; in my C++ Code – Neel Basu Oct 1 '11 at 9:36

Your Answer


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.