Anyway, so that Visual Studio ignores the script tag and assumes that anything in the script tag is html?

I have many templates enclosed in script tags. This is pure html, but Visual Studio highlights them. I do not have built-in Javascript, so if Visual Studio just ignores the script tag and processes the contents inside, since a normal html document will be really nice. I'm used to the CSS intellisense class and good code formatting.

It's a long shot, is it possible anyway? Right now, I mark my HTML and then put it in a script tag, but was hoping for a better solution.

+3
source share
1 answer

SCRIPT, HTML IDE, , .

< script>
 ^leave space
 <div>HTML is supported</div>
</script>

<script>
 ^no space
 <div>HTML is NOT supported here</div>
</script>
+3

Source: https://habr.com/ru/post/1765131/


All Articles