Sometimes I open ActionScript files in another editor then FlashDevelop. And in my case this is Notepad++.
Notepad++ has ActionScript syntax highlighting but it seems that it doesn’t detect it.
When I open an AS file it uses the Haskell syntax highlighting, and that is very annoying especially when you open a couple of files and you need to set them one by one to ActionScript.
Google (who else) provided the answer: here.
This is what you do:
find and open the langs.xml
file
you can find it in the install folder of Notepad++, in my case
C:\Program Files\Notepad++
find the haskell language
< Language name="haskell" ext="hs lhs as las" commentLine="--" >
and remove “as
” from the ext and save the file.
Next time you open an AS file with notepad++ it will be highlighted in the correct syntax
🙂
14 replies on “Notepad++ opens ActionScript file with Haskell syntax highlighting”
Hey just what I needed, thanks!
Thank you !! Made my day in helping me not wasting any time in searching by myself.. 🙂
I found it via Google here.
Hey! Thank you! 🙂
Thanks man. Flash CS4 takes forever to load up when opening .AS files.
Thanks for the advice! I was wondering why it wouldn’t hightlight correctly… the haskell/actionscript shared file extension is something I probably would not have caught nor known how to fix 🙂
I found in the langs.xml file that the first entry has no closing
Actionscript being the second language, I believe this might be the root problem
I also had to delete the langs.xml cache file located here for it to work:
C:\Users\\AppData\Roaming\Notepad++\langs.xml
[…] Notepad++ opens ActionScript file with Haskell syntax highlighting ??: ???? BY-NC-SA ??????. ???????: Notepad++ ? AS […]
Thanks a lot!
Thank you Something!!! I had the same issue with cached file:
C:\Users\\AppData\Roaming\Notepad++\langs.xml
I had to delete it.
This solves the problem, however in win 7 the langs.xml is in user/appdata/roaming
[…] paper translation from:Notepad++ opens ActionScript file with Haskell syntax highlighting var infolink_pid = 138755; var infolink_wsid = […]
To make it work under my win7 I had to delete the langs.model.xml from:
C:\Users\”userName”\AppData\Local\Temp