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 ?
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 :
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/