VS2010 IntelliSense inside text/x-jquery-tmpl script templates
问题 I've been using jQuery templates which I absolutely love to use. The only drawback from an IDE standpoint is the lack of HTML IntelliSense inside the script tag. Is there a way to fool VS2010 so that markup inside template script tags get IntelliSense and syntax highlighting? 回答1: I created a helper method for ASP.NET MVC 3 that works like this, inspired by Html.BeginForm: within the view: @using (Html.BeginHtmlTemplate("templateId")) { <div>enter template here</div> } Anything within the