views:

357

answers:

2

Dear ladies and sirs.

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?

Thanks.

+3  A: 

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>
Jonathan
close all your files opened with notepad++, then restart notepad++ to make changes to take effect.
Jonathan
+8  A: 

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

VladV