How to make notepad++ treat csproj files as XML automatically?
-
16-09-2019 - |
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?
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="<!--" commentEnd="-->">
</Language>
by
<Language name="xml" ext="xml xsml xsl xsd kml wsdl csproj" commentLine="" commentStart="<!--" commentEnd="-->">
</Language>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow