Thursday, 25 February 2010

How to get code in my blog?

I've often come across very useful information posted by other industry experts on blogs. Now that I'm doing it myself I was wondering how people managed to post good looking code on their sites - one example is Jim Wang over at http://jianwang.blogspot.com/.

Well, I've found the key - a very useful tool called SyntaxHighlighter.

And just so I can remember how to set it up next time I need it, there is a very useful wiki over at Carter Cole's Blog.

And just so you can see it working:

//Define and initialise our variables
var alertMsg;
alertMsg = "Hello World";
//Set up the alert window
if (alertMsg != "") {
    window.alert(alertMsg);
}  

No comments:

Post a Comment