Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET Razor syntax highlighting for Notepad++ [closed]

Tags:

How do I go about supporting syntax highlighting for ASP.NET Razor (.cshtml files) in the Notepad++ Windows application?

I believe the correct way is to use User-Defined Language import files, but was getting a bit overwhelmed in this endeavor.

I found the list of current Notepad++ language files at the URL below, but the one I am looking for is not available from this selection. http://sourceforge.net/apps/mediawiki/notepad-plus/?title=User_Defined_Language_Files

Before you ask, I use Visual Studio 2012 for most of my development tasks, but sometimes VS is being a pain and find it quicker to do some edits in Notepad++, thus why I am looking for the syntax highlighting rules.

like image 872
Neil Monroe Avatar asked Oct 22 '13 15:10

Neil Monroe


Video Answer


1 Answers

I'm pretty sure that there isn't any cshtml syntax highlighter available yet.

If you still want to use Notepad++ though, you could try to find a similar language (don't have any tips to give you on this matter), check if its syntax highlighter gives acceptable results (you can check them one by one from the Language menu, and you could try also some User Defined from your link), and if you are happy enough with a language then go to Settings > Style Configurator > Choose your language > add the cshtml extension in the "User ext." textbox.

PS. unrelated to Razor, but this might interest you http://www.shilony.net/2012/09/02/notepad-visual-studio-theme/

like image 77
psxls Avatar answered Sep 18 '22 09:09

psxls