I have just added the CodeHighlighterPlugin for my blog. So as to take it for the test run, I am posting it here. Below are some actionscript code to see everything works fine.
package
{
import flash.display.MovieClip;
import flash.display.Sprite;
import flash.events.MouseEvent;
import flash.external.ExternalInterface;
/**
* @version 0.1
* @author Saumya
*/
public class FlashMenu extends MovieClip
{
public var btnOne:Sprite;
public var btnTwo:Sprite;
public var btnThree:Sprite;
public function FlashMenu()
{
this.init();
}
private function init():void
{
trace(this, ' : init : ');
this.btnOne.addEventListener(MouseEvent.CLICK, onUserClick);
this.btnTwo.addEventListener(MouseEvent.CLICK, onUserClick);
this.btnThree.addEventListener(MouseEvent.CLICK, onUserClick);
}
Happy living
ok, now it seems like CodeHighlighterPlugin does a nice job, hilighting the code. But the only thing it cannot handle is the flowing of text content outside the specified area. Anyway, I am happy with the plugin. Now, I have to take care, so that my code does not run over other text contents.