Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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
[/sourcecode]

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
add comment

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.