WordPress blogs – Source code syntax highlighting

Say goodbye to the code tag.
Wordpress.com blogs have a new shortcode to post source code with syntax highlighting.

If you find that you can’t get it to work, make sure that you have typed in the shortcode, and not copied the snippet from the FAQ entry.

When copied, the snippet contains invalid markup. See if you can spot the difference –

sourcecode language='css']...[/sourcecode
sourcecode language=’css’]...[/sourcecode


Leave a Reply

Your email address will not be published. Required fields are marked *

8 − = six

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>