Archive

Posts Tagged ‘Source Code’

Posting Source Code on WordPress.com

June 14, 2009 Leave a comment

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.

Categories: WordPress Tags: ,