How to use syntax highlighting for .aspx & .ascx files in notepad++

asp.netnotepadvisual studio

When I open .aspx or .ascx files in notepad++, notepad++ open them as Normal Text files and so no syntax highlighting works. In the Language dropdown menu I dont see ASPX or ASCX options.

How to setup notepad++ so that it uses syntax highlighting when I open .aspx or .ascx files? I want to use the Visual Studio syntax highlighting in notepad++ for the .aspx and .ascx files. I am using Visual Studio 2015.

Thanks

Best Answer

You can have the syntax highlight for you by adding user extensions on the ASP language inside the Style Configurator:

Settings > Style Configurator > Click "asp" > Where it has "User ext. :" on the bottom put "aspx ascx" without quotes then click Save & Close.

Select your language as ASP afterwards and this should work fine.

Related Question