Search code examples
xmltext-editornotepad++

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


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.


Solution

  • 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