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.
http://wordpress.com/blog/2007/09/03/posting-source-code/

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 *


1 × three =

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>