wtflash.com
 

Archive for the ‘wordpress’ Category

How to Display ActionScript Code in WordPress

Monday, February 2nd, 2009

This being my first personal weblog I expected to run into some walls.  The first hurdle (although a short  one) was figuring out how to easily display source code in posts.  After some googling I came across this:

CodeColorer

Installation is straightforward.  Here is a sample of what you get:

[cc lang="actionscript" tab_size="2" lines="40"]
// actionscript code
var mc:MovieClip = new MovieClip();
if (mc.x == 0) {
mc.x = 100;
}
[/cc]