Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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"?

share|improve this question
up vote 84 down vote accepted

All you have to do is tell Notepad++ that "xul" files are actually "XML" files.

  1. Go to Settings > Style Configurator
  2. Under Language, scroll down and highlight "XML"
  3. At the bottom, under User ext. type in "xul"
  4. Press Save & Close
  5. Open your file and it should now highlight properly.

Some other helpful links:

share|improve this answer
Perfect! Thank you. – MatrixFrog Jun 11 '10 at 22:20
And if you want to add more than one (for example, I'm also adding 'rdf' -- yup, I'm doing Firefox extension development) then just separate them with spaces. – MatrixFrog Jun 11 '10 at 22:21
I'm saving it and it works for the session but it doesn't persist. When I restart Notepad++, it's not there anymore. – strider Mar 27 '14 at 15:31
Run it as Administrator and it persists. – strider Mar 27 '14 at 15:37
Note that for user-defined languages, the same can be done from the language configuration window in Language > Define your language... > user language : <your language> in the Ext. field. – ycouble Apr 20 at 9:54

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.