« Yahoo! Open Hack Day - Update | Main | WWW helped an old-schoolmate find me »

October 12, 2007

VIM: ActionScript and MXML syntax files

I am sharing VIM syntax files for ActionScript and MXML, which  I was about to share last-year, I got lazy after Manish's post. I hope, these syntax files would provide more (if not better) syntax-highlighting :-)

Click following links to download/see:-

You can refer to Manish's post to learn how to use these files. Instruction applies to any VIM syntax file.

Credit goes to original creators of actionscript.vim and xml.vim. These files were starting points.

Disclaimer:These files work for me, these are not perfect or clean. I would try to clean up, add more (if any missing) syntax and share whenever I get time.

Technorati Tags: , , , , ,

Posted by Abdul Qabiz at October 12, 2007 12:59 PM

Comments

You rule!!!!

This is great!

Now all we need is to modify eclipse java editor to take in syntax from actionscript and eclipse jsp editor to handle MXML (after all it is just like JSPs) and we got a semi-working ide :)

Posted by: DLikhten at November 16, 2007 02:30 AM

Quick suggestion on implementing them:

Add this to your $HOME/.vimrc:
au BufNewFile,BufRead *.mxml set filetype=mxml
au BufNewFile,BufRead *.as set filetype=actionscript

The instructions that are linked to don't include the mxml line and they don't work when you're creating a new file!

Posted by: Devon at November 21, 2007 06:27 AM

Incredibly helpful - thanks!

For Actionscript 3 within an mxml file script tag, the syntax coloring is different than actionscript in a standalone *.as file - is that your intention (or maybe my environment is messed up :) ?

Posted by: Geoff at December 1, 2007 01:22 AM

Is there a way to enable/add folding on the actionscript syntax file?

Posted by: Martin at August 20, 2008 12:20 AM

Post a comment




Remember Me?


Please enter the security code you see here

(you may use HTML tags for style)