Reputation: 62886
I often use notepad++ for editing of the csproj files. And I always need to go to the Language menu and select XML in order to get syntax highlighting.
Is it possible to configure notepad++ to treat csproj files as XML automatically?
Upvotes: 39
Views: 5202
Reputation: 10389
Open Settings -> Style Configurator, select "XML" in "Language" list, add "csproj" (without quotes) to "User ext" box.
Upvotes: 71
Reputation: 12015
Edit the file langs.xml in the notepad++ folder.
Change this
<Language name="xml" ext="xml xsml xsl xsd kml wsdl" commentLine="" commentStart="<!--" commentEnd="-->">
</Language>
by
<Language name="xml" ext="xml xsml xsl xsd kml wsdl csproj" commentLine="" commentStart="<!--" commentEnd="-->">
</Language>
Upvotes: 9