How to have syntax highlighting in wordpress.com blogs?

Is there a way I could install some plugin or have syntax highlighting for my wordpress.com blog or do I need to install WP on my own server to be able to install a plugin to do that?

2 Answers
2

WordPress.com uses Alex Gorbatchev’s SyntaxHighlighter so all you need to do is use the right shortcode ex:

[code language="css"]
#button {
font-weight: bold;
border: 2px solid #fff;
}
[/code]

which gives you something like this:

enter image description here

it has more features and you can see a list of supported languages at http://en.support.wordpress.com/code/posting-source-code/

Leave a Comment