I've associated .xul with Notepad++ so if I double-click on a .xul file, it will open in Notepad++. But Notepad++ doesn't know that XUL is just a particular type of XML, so I then have to manually click on "Language > XML" to get XML syntax highlighting. Is there a way that I can tell it: "every time you open a file with the extension .xul, automatically switch to the XML language"?
All you have to do is tell Notepad++ that "xul" files are actually "XML" files.
- Go to
Language, scroll down and highlight "XML"
- At the bottom, under
User ext.type in "xul"
Save & Close
- Open your file and it should now highlight properly.
Some other helpful links:
Here is the instructions for user defined languages. With pictures.
Select: Language --> Define Your Language:
Make sure you omit "." from extension in the Ext. box, or it wont work:
Update for version 7.5+ and for multiple extensions
1) Settings > Style Configurator
2) look under "Languages:" , choose your target language.
3) look at textbox under "User ext. :"
Simple type the extension you wish to associate for that language. For multiple file extensions, it should be separated via SPACE. Do not use any "." period/dot characters.
EG. for SQL i used the following extensions for table, view, stored proc and user defined functions:
tab viw prc udf