asp.net mvc Razor code highlighted in dreamweaver
We have to migrate our asp.net mvc views, that use webforms view engine, into razor view engine.
The situation is that we have a gr开发者_StackOverflow中文版oup of web designers that uses dreamweaver to change the html of these files.
Do you know if there is something in dreamweaver to view correctly the razor code (i mean, hightlighted to easily read for them)?
Support for ASP.NET was dropped in Dreamweaver CS4 (current version is CS5), so any support would come only through a third-party plugin.
I followed Peters steps for adding cshtml to the list of editable files:
http://blog.metameister.com/blog/2011/04/08/open-new-file-types-and-add-syntax-highlighting-in-dreamweaver-cs5-on-windows-7/
Since Dreamweaver does not recognize Razor elements, this allows to edit the csHTML inside Dreamweaver, while in the design view you see the Razor parts is if they were text.
If your designers expect a design view, they might not be happy, if they are coder-designer how tweak raw (cs)html, then that might help them.
For me that is helpful, although I like the Visual Studio text editor a lot, writing text inside the page is sometimes easier with DW, for instance making some text goes by ctrl-b inside DW while I could not figure out a way to do this in VS by shortcut.
Razor is still in beta so I would be surprised if there are any plugins available yet.
精彩评论