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

link|improve this question
feedback

1 Answer

up vote 3 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.

I should note that this has already been asked. Take a few moments to look around before you ask a question.

Previously asked Question: Assigning custom extensions to a language’s syntax highlighting in Notepad++

Notepad++ wiki help: Associating file extensions with highlighters

Hope this helps

link|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
feedback

Your Answer

 
or
required, but never shown

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