Notepad++ opens ActionScript file with Haskell syntax highlighting

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

:)

Be Sociable, Share!
  • Twitter
  • Facebook
  • email
  • StumbleUpon
  • Delicious
  • Google Reader
  • LinkedIn
  • BlinkList
  • Google Bookmarks

11 Comments

  1. Posted June 10, 2009 at 23:51 | Permalink

    Hey just what I needed, thanks!

  2. Posted July 3, 2009 at 10:36 | Permalink

    Thank you !! Made my day in helping me not wasting any time in searching by myself.. :)

  3. DasRakel
    Posted August 7, 2009 at 15:41 | Permalink

    I found it via Google here.

  4. Gábor Kovács
    Posted September 14, 2009 at 19:20 | Permalink

    Hey! Thank you! :)

  5. Saiya Uchima
    Posted April 17, 2010 at 19:10 | Permalink

    Thanks man. Flash CS4 takes forever to load up when opening .AS files.

  6. GLenn
    Posted May 7, 2010 at 04:44 | Permalink

    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 :)

  7. K
    Posted August 13, 2010 at 17:41 | Permalink

    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

  8. Something
    Posted December 6, 2010 at 08:13 | Permalink

    I also had to delete the langs.xml cache file located here for it to work:
    C:\Users\\AppData\Roaming\Notepad++\langs.xml

  9. CR
    Posted January 28, 2011 at 10:05 | Permalink

    Thanks a lot!

  10. Posted June 13, 2011 at 16:19 | Permalink

    Thank you Something!!! I had the same issue with cached file:
    C:\Users\\AppData\Roaming\Notepad++\langs.xml
    I had to delete it.

  11. James Reno
    Posted July 15, 2011 at 05:11 | Permalink

    This solves the problem, however in win 7 the langs.xml is in user/appdata/roaming

2 Trackbacks

  1. By Notepad++ ? AS ?????? on December 14, 2010 at 05:58

    [...] Notepad++ opens ActionScript file with Haskell syntax highlighting ??: ???? BY-NC-SA ??????. ???????: Notepad++ ? AS [...]

  2. By Notepad++ highlighted AS file on September 8, 2011 at 08:53

    [...] paper translation from:Notepad++ opens ActionScript file with Haskell syntax highlighting var infolink_pid = 138755; var infolink_wsid = [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*