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 have associated .wxs files with Notepad++. So far so good. However, it doesn't remember that it should use XML syntax highlighting. How do I associate a file-type with a Language?

share|improve this question

marked as duplicate by techie007, Mokubai, Tog, mpy, Simon Sheehan Nov 4 '13 at 2:45

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1  
similar question: superuser.com/questions/40876/… –  Valentino Vranken Sep 14 '12 at 8:08
add comment

1 Answer

up vote 96 down vote accepted

As here is mentioned : ASSOCIATE FILE EXTENSIONS WITH SPECIFIC LANGUAGES IN NOTEPAD++ you should do :

In Notepad++ navigate to Settings > Style Configurator…

Choose a language on the left side that you want your own extension to match (i.e. if I want .config files to style like XML then I’d choose XML). In the User ext. field near the bottom, enter in your custom user extension without the dot in front of it (e.g. config for *.config files). Now restart Notepad++ and it will map that new extension to the style you’ve chosen.

enter image description here

share|improve this answer
5  
Could you summarise the contents of the link in your answer, so that we don't lose it if that link goes dead for some reason? –  fredley Apr 17 '12 at 16:48
4  
@fredley ok, The answer has updated ! –  hamed Apr 17 '12 at 18:16
1  
Thank you! Thank you! Thank you! –  C Johnson Aug 8 '13 at 15:25
3  
Also, it’s worth noting that if you make this change and have a file open already, Notepad++ will cache the file’s current no-language selection. This means that you will need to specifically close the file in Notepad++ before it will recognize the extension. todd.ropog.com/2012/get-notepad-to-recognize-any-file-extension –  Straff Nov 15 '13 at 22:52
2  
"Restarting" Notepad++ doesn't work. You need to close and reopen the file, actually. –  Wolfpack'08 Apr 15 at 0:51
show 1 more comment

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