Visual Studio - Markup syntax highlighting inside script[type:txt/html]
问题 Does anyone know how or if its possible for Visual Studio 2008 to highlight the html syntax inside a script block of type "text/html" just like any other markup on an aspx/html page. I'm using the script block to house my templates for client-side templating. 回答1: Two ideas come to mind, assuming the page itself is an ASP.NET page (and not a plain HTML page) : create a custom control which emits the script tag and end-tag. By using a custom control, you'll fool the IDE into not knowing about