Syntax highlighting for WordPress

Finally managed to install this neat syntax highlighter plugin for WordPress. I wanted to do that for some time but didn’t really have the time for that. Now, it’s done… I’ve installed it… See the proof below.

import fl.controls.Button;
 
/**
 * This is a simple function that creates a button on the stage. Really, there's
 * nothing interesting about it.
 */
function foo():void {
	var newButton:Button = new Button();
	this.addChild(newButton);
	newButton.x = 100;
	newButton.y = 100;
	newButton.label = "Hit me!";
	newButton.addEventListener(MouseEvent.CLICK, clickHdl);
}
 
// This is when you know that the button was clicked.
function clickHdl(evtObj:MouseEvent):void {
	trace("Can you read this ?");
}
 
// Calling the main function.
foo();

Maybe I’ll find some time to customize it a little

3 thoughts on “Syntax highlighting for WordPress

  1. Hi,

    I like reading your blog.

    And I hope you will write something about that flash invokes js function to get variable from js function.

    Thank you very much indeed.

  2. @june_zhuhui

    Thanks a lot. At least I know someone reads my blog :)) .

    Anyway, it’s not a bad idea the example with js. The main idea is that you need to use ExternalInterface. I’ll put together an example sometime.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">