Blog RSS Feed Subscribe

Jordi Boggiano

Jordi Boggiano Passionate web developer, specialized in web performance and php. Partner at Nelmio, information junkie and speaker.

Categories

ActionScript 3 Language file for GeSHi

As I wanted to post AS3 code with syntax coloring, I researched it a bit and found GeSHi, a PHP syntax highlighter, for which you can create language files quite easily. There is currently no AS3 file available in GeSHi though, so I decided to build one.

For now it's available here, but I hope it will make it into GeSHi's next releases. It's following the FlexBuilder2 colors for the default style, but it is stylable with CSS.

Should you see any missing keyword or anything, please contact me so I can update it.

Edit : I updated this file to v1.0.1, I was so focused on scraping data that I forgot the "this" keyword in the process, that's now fixed.

Download : AS3 Language file

November 30, 2007 // ActionScript, PHP

Post a comment:


Formatting: you may use [code php] [/code] (or other languages) for code blocks, links are automatically linked. <strong>, <em> and <blockquote> html tags are allowed without nesting, the rest will be escaped.

Subscribe to this RSS Feed Comments

2007-12-16 02:09:05

Mark

Hey Seld,

Thanks for the GeSHi plugin, I know a lot of people use that highlighter.

Not sure if you are aware of SyntaxHighlighter or not, but its a JavaScript syntax solution (doesn't require any server side component). I've been using it for a while and really like it. I created an AS3 syntax plugin for it as well if you're interested.

2007-12-16 04:44:48

Seld

Yes I've seen a friend using it recently, but then I had just finished integrating GeSHi with TinyMCE so for now I'll stay on GeSHi.

Having it in done by a JS script is quite elegant though, I admit.

2008-03-10 10:35:51

antoine schirer

thanks !

 

2008-06-02 20:52:01

Yop

Thx a lot :)

2009-05-13 15:57:32

Kamilla Viktor

Hej Hej Jordi Boggiano

Thank you very much for your work on the actionscript3.php!

I don't know if you read this, but I may have found a missing keyword: 'extends' used in creation of classes. I saw your work in dotclear, but could't find a way to communicate with tou there. I changed my file locally, but thought I'd let you know, in case you'd want to update!

I may be following that project with great interest and would like to know how to make requests officially.

regards

Kamilla - [kamvik-at-gmail-dot-com]