Code, beautiful code!
Note: I accidentally erased this post while playing around. Luckily I had the site open in another window and could recreate it.
I finally found the time to add a syntax highlighter to FlashAnt. 've integrated GeSHi, the excellent Generic Syntax Highlighter (those of you who were on within the last five-ten minutes may have noticed me making test posts to tweak the output.) GeSHi handles a lot more besides ActionScript (and ActionScript 2). In fact, it can highlight over 30 languages, so plugging additional languages in the future will be very easy.
Her's a simple class to demonstrate the new code view:
class HelloWorld { private var _msg:String = "I am beautiful!"; function HelloWorld () { trace ( "Hello, world!" ); trace ( msg ); } public function get msg () { return _msg } }
And how you would use it, from an FLA (blatant test of having two code areas in one post, I know!)
// Import the class import HelloWorld; // Instantiate an instance new HelloWorld();
Something tells me this is going to motivate me to post lots more code samples in the future!
Comments
[Aral: I'm manually adding back this comment after the post was accidentally deleted. Sorry about that Richard... I hope the GeSHi hack I released a few moments ago makes up for it! :) ]
by Richard Leggett on 2004-12-17 18:22:41
by Aral Balkan on 2004-12-17 19:53:20