WordPress.com Source code Highlighting

I just found this out, and i’m sure a lot of people probably already knew this, but as always, I’m late the game. Anyway, WordPress.com has built in support for source code highlighting. I’ve already updated several of my posts to  use it. Here’s the link showing how

http://en.support.wordpress.com/code/posting-source-code/

The TL;DR of it is you just put the following around the code in your post:

[sourcecode language="css"]
your code here
[/sourcecode]

Filling in the language with whatever your posting in. The list of supported languages on the link I posted above is pretty short but I get the impression it’s probably not been updated in a while either.

About these ads
This entry was posted in Uncategorized. Bookmark the permalink.

One Response to WordPress.com Source code Highlighting

  1. rhyous says:

    Try entering source code. Then go to the Visual Editor then back to Text editor. Tell me how that works for you.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s