Reputation: 1747
My
.ascx
file contains C# and HTML. Everything in VSCode is highlighting the syntax correctly up until it reaches <%-- insert dynamically generated text here --%>
. After that, everything is white like text. All HTML/other code doesn't highlight and IntelliSense stops working. How do you stop VSC from doing this?
Upvotes: 2
Views: 1163
Reputation: 9704
It looks like the default razor syntax included with the C#/Omnisharp plugin doesn't cover the older razor syntax that's used with WebForms, so it has no idea what to do when it comes across code nuggets.
The following extension can be installed to help add in support for WebForms' ASPX pages and older razor syntax.
Upvotes: 7