March 07, 2003
MTCodeBeautifier - ActionScript highlight plug-in for MovableType

Here is a cool plug-in for MovableType, it is sure to become very useful considering how many Flashers are using MovableType today. (Not to mention all the Perl and PHP programmers using it): MTCodeBeautifier - MovableType Syntax Highlighting Plug-in

It is Sean Voisen of Voisen.org (former EatOrange) that has taken a project called Beautifier, used for Perl code highlighting, and added support for ActionScript and several other script/programming languages, as well as adding the necessary code to make it into a MovableType plug-in.

Great work Sean! :-)


Testing the plug-in:


CheckerBoard.prototype.drawBoard = function () {
// Settings necessary for resizing of the board
Stage.scaleMode = "noScale";
Stage.align = "tl";

for ( var i = 0; i < this._rows; i++ ) {
for ( var j = 0; j < this._cols; j++ ) {
if ( (i+1)%2 == 0 ) {
if ( (j+1)%2 == 0 ) {
this.private_drawSquare( "WhiteSquare", i, j );
}
else {
this.private_drawSquare( "BlackSquare", i, j );
}
}
else {
if ( (j+1)%2 == 0 ) {
this.private_drawSquare( "BlackSquare", i, j );
}
else {
this.private_drawSquare( "WhiteSquare", i, j );
}
}
}
}

// Set the drawn variable
this._drawn = true;
}


:-)

Posted by jarle at 11:10 AM | Comments (2)