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

后端 未结 5 1710
鱼传尺愫
鱼传尺愫 2021-01-30 03:26

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

5条回答
  •  不知归路
    2021-01-30 04:14

    I don't think you can set a default style for all files (there may be some config file trickery that does allow it though) but as you specifically mention .config files, you can open the langs.xml or langs.model.xml file in your Notepad++ installation directory, find the xml section, and add config to the value of the ext attribute:

    
    
    

    Or, use the Style Configuarator as noted by @AdamHawkes (+1), instead of messing around in the XML config files themselves!

提交回复
热议问题