Notepad++: How to automatically set Language as Xml when load files

devlord picture devlord · Feb 2, 2012 · Viewed 53k times · Source

Whenever I edit a .config file in Notepad++ (which is an XML file) I want the syntax highlighting to automatically color it like XML. How do I configure Notepad++ to do this so that I don't have to manually select it every time I open a .config file?

Thanks.

Answer

Erikest picture Erikest · Feb 2, 2012

You can do this by using the Style Configurator (Settings Menu):

This image shows the php language, but it works for any language you want to map

enter image description here