mark
mark

Reputation: 62886

How to make notepad++ treat csproj files as XML automatically?

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

Answers (2)

VladV
VladV

Reputation: 10389

Open Settings -> Style Configurator, select "XML" in "Language" list, add "csproj" (without quotes) to "User ext" box.

Upvotes: 71

Jonathan
Jonathan

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="&lt;!--" commentEnd="--&gt;">
</Language>

by

<Language name="xml" ext="xml xsml xsl xsd kml wsdl csproj" commentLine="" commentStart="&lt;!--" commentEnd="--&gt;">
</Language>

Upvotes: 9

Related Questions