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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello all,
Does anyone know how to make N++ to always use the same language highligher based on file extension?
Thanks,
Ovidiy
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.
Thanks a lot - it works as the doctor ordered :)