There is syntax highlighting for Flex 3 and ActionScript 3
*. For Flex 4 syntax highlighting you have to make only a few changes to this
mxml.vim file as follows:
1. Find the line:
syn keyword mxmlSpecialTagName contained mx:Script mx:Style
and replace it with:
syn keyword mxmlSpecialTagName contained mx:Script mx:Style fx:Script fx:Style
2. If you have found the above line go five line down and you will a
sync
with
mx:Script
tag. So you add these one too:
syn region Script start=+]*>+ keepend end=++me=s-1 contains=@mxmlScript,mxmlCssStyleComment,mxmlScriptTag,@htmlPreproc
syn region mxmlScriptTag contained start=++ contains=htmlTagN,htmlString,htmlArg,htmlValue,htmlTagError,htmlEvent
Alternatively you can download the vim script file from
vim.org