Question

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?

Was it helpful?

Solution

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

OTHER TIPS

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>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top