You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When i place a script tag in an html document, and then write two forward slashes to comment out the following line, if i'll then type the "<" (Less-Than sign) character on that line, as: <script> //< </script>
it becomes red in the VS Code Editor, instead of being green as usual with comments on javascript code.
first I thought that the reason is because "<" character is illegally used in a script tag since this may indicate the starting of a closing-tag, but when I try it in other IDEs they don't give me any error, and I believe that they are right.
Now I realized that the same problem occurs even with the script closing-tag itself, if it is placed right after the two fwd slashes, as: <script> //</script>
in the latter scenario the "<" character of the closing-tag becomes red.
When i place a script tag in an html document, and then write two forward slashes to comment out the following line, if i'll then type the "<" (Less-Than sign) character on that line, as:
<script> //<
</script>
it becomes red in the VS Code Editor, instead of being green as usual with comments on javascript code.
first I thought that the reason is because "<" character is illegally used in a script tag since this may indicate the starting of a closing-tag, but when I try it in other IDEs they don't give me any error, and I believe that they are right.
Now I realized that the same problem occurs even with the script closing-tag itself, if it is placed right after the two fwd slashes, as:
<script>
//</script>
in the latter scenario the "<" character of the closing-tag becomes red.
See image:
Update:
another issue i found is with "&" character (Ampersand sign), becoming red incorrectly, see image:
The text was updated successfully, but these errors were encountered: