Source Code highlighting in your blog – SyntaxHighlighter

I was looking for a way to make my code easier to read in the blog and I found SyntaxHighlighter as it was being used in the XSnippets website.

It is already built into wordpress which is hosting my blog and the format is simple.

Originally I was just italicizing my code

function x$(idTag){
     idTag=idTag.replace(/:/gi, “\\:”);

but if you wrap it with the appropriate code for WordPress

Syntax Highlighter Example
Syntax Highlighter Example

gives us a much easier on the eye:

function x$(idTag){
	idTag=idTag.replace(/:/gi, "\\:");

It also gives you the ability to copy and view – LOVE IT !
Productive !

Leave a Reply

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

You are commenting using your 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