Home > WordPress > Posting Source Code on WordPress.com

Posting Source Code on WordPress.com

All I really wanted to do was be able to include source code snippets in my blog past at WordPress.com. It was no problem to find numerous examples of other blogger posting source code. But how do you do it? Well, if I had only read the FAQ. I certainly feel silly 🙂


echo "put your code here!\n"
[//sourcecode]

Actually there’s only a single slash quickcode close tag:

[sourcecode language=’css’]

your code here

[/sourcecode]

Seems the WordPress uses a customer version of SyntaxHighligher. Very nice in my opinion.

Advertisements
Categories: WordPress Tags: ,
  1. No comments yet.
  1. No trackbacks yet.

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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: