Thread: Notepad++ opening ActionScript files

  1. #1
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912

    Notepad++ opening ActionScript files

    So I just started a new job programming in Flex 3 - I absolutely love it. I was toying around with the different options for IDEs and editors and stuff - and I really like Notepad++.

    .as and .java (among others) files are registered to notepad++ - so when I double click 'em, Notepad++ automatically opens. When I open a java file, it recognizes it and applies that java syntax highlighting without me doing anything. When I open ActionScript files, it provides minimal generic highlighting, and I have to manually select "ActionScript" from the drop-down languages menu.

    No serious issue, but really annoying when you're working with as many little files as I am. Does any one know what the problem might be?

    I noticed that .as files are listed under the category "property script" in one menu, with what appear to be vb files and a couple of others... that might have something to do with it, but I didn't see any way to edit that at all.

  2. #2
    Registered User
    Join Date
    Jan 2008
    Posts
    290
    Wow, that's funny. I never noticed that before, but it does look like Notepad++ has ".as" files listed under more than one language.

    You should probably try editing the langs.xml / langs.model.xml files (they should be in the folder where you installed Notepad++), and editing the extensions yourself. For me, ".as" files are listed under Actionscript and Haskell (and maybe more), and Haskell seems to take precedence.

    I'm not sure what the difference between langs.xml and langs.model.xml is, so you might not have to edit both.

  3. #3
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    .as for Haskell is weird - Haskell customarily uses .hs and .lhs.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  4. #4
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    Problem solved! Thanks!

  5. #5
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by CornedBee View Post
    .as for Haskell is weird - Haskell customarily uses .hs and .lhs.
    Perhaps created by a UK East Londoner, pronouncing it 'askell?

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  6. #6
    The superhaterodyne twomers's Avatar
    Join Date
    Dec 2005
    Location
    Ireland
    Posts
    2,273
    Does notepad++ support macros? You could always record one if the other options don't work.

  7. #7
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    Yeah, it does support macros (judging by the fact that a macros menu exists - I haven't actually toyed with them yet), just for the record. It's really programmable - I like that.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Opening Files...
    By yaya in forum C++ Programming
    Replies: 5
    Last Post: 07-12-2007, 06:33 AM
  2. Opening ASCII files in C?
    By Mavix in forum C Programming
    Replies: 6
    Last Post: 04-25-2007, 02:23 PM
  3. opening files
    By angelic79 in forum C Programming
    Replies: 3
    Last Post: 10-19-2004, 06:52 AM
  4. Replies: 2
    Last Post: 11-05-2001, 02:02 PM
  5. Opening files - Giving options?
    By wwwGazUKcom in forum C++ Programming
    Replies: 3
    Last Post: 09-18-2001, 07:06 AM