Categories
Blogging

A very Nice Man

Sean Voisen is a very nice man. His blog has long been part of my daily blog reading for quite a while. As part of my whole blogging experiment I’ve been trying out his MTCodeBeautifier Plugin for Moveable Type. It allows me to post actionscript and have it appear beautifully formatted and colour coded, like so:


// returns true if file is on specified server.
// returns false if file is not on specified server.
// server format - http://www.myDomain.com

function atHome(myDomain){
if(_root._url.indexOf(myDomain)==0){
text1=true;
}else if(_root._url.indexOf("file://")==0){
text1=false;
}else{
text1=false;
}
return text1;
}


Anyway, I couldn’t get it working. I’d been over everything and couldn’t get it to work. My code just disappeared from the page – it wasn’t even in the html source. I tried all I could think of, and even asked around for help (Kristine tried to help me – thanks for that) but to no avail. So i finally emailed Sean, not wanting to bother him, but seeing no other way. He wrote back within a few hours, with the exact answer to my problem. Seems I was putting the plugin language as “Actionscript” rather than “ActionScript” (spot the capitalised S). now it all works beautifully. So I just wanted to a) say a big thanks to Sean and b) post this so that it hopefully gets googled and helps someone else.

Leave a Reply