Menu

How to associate language with file extension

2007-11-28
2012-11-14
  • Nobody/Anonymous

    Hello all,

    Does anyone know how to make N++ to always use the same language highligher based on file extension?

    Thanks,
    Ovidiy

     
    • Martijn Coppoolse

      Easy.

      Look up the language you want used in the Styler Configurator (in the Preferences menu).  In the 'user ext' text box, enter the file extension you want to assign to that language, without preceding '.' dot.

      So, for example, if you want to assign .wsdl files to XML, just enter 'wsdl' (without the apostrophes, of course).

      Hit 'Save & Close', and try opening a file with the extension you just assigned, and the "right" language should be selected automatically.

       
    • Nobody/Anonymous

      Thanks a lot - it works as the doctor ordered :)