Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

up vote 54 down vote accepted

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

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

Some other helpful links:
Assigning custom extensions to a language’s syntax highlighting in Notepad++
Associating file extensions with highlighters

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

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.