cosmodesktop

Happy Flash/Flex Coder

Install Syntax Highlight in WordPress

After googling around I found wp-syntax which I think it’s quite power full and support many programming language (surely Actionscript3). Woooooo, see what it look like.

var canvas_mc:Sprite = new Sprite();
addChild(canvas_mc);
canvas_mc.graphics.beginFill(0xFF0000, .9);
for(var i:int = 0; i<100; i++){
	trace("Hello wp-syntax ("+i+")");
	canvas_mc.graphics.drawCircle( stage.stageWidth*Math.random(),
						   stage.stageHeight*Math.random(),
						   10+50*Math.random() );
}
canvas_mc.graphics.endFill();

Leave a Reply

You must be logged in to post a comment.