Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 794
mark Avatar asked Jul 16 '09 07:07

mark


2 Answers

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

like image 70
VladV Avatar answered Oct 09 '22 17:10

VladV


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> 
like image 21
Jonathan Avatar answered Oct 09 '22 18:10

Jonathan