Rainbow improperly highlights <script><!-- --></script>
If a site does something like
<script type="javascript" src="slider.js"><!-- this is the JS for the fancy slider effects --></script>
the ending </script> tag isn't noticed by Rainbow, and it will try to JS-highlight everything until it meets another </script> tag which isn't preceded by a > (at least, that's what I've noticed).
This causes a problem in some websites, e.g. Wikipedia: around line 64, there is such a script tag, and the rest of <head> consists only of bare includes, so Rainbow pretends that a chunk of the head and the body is JS, and then highlights a bunch of unmatched tags that it missed while in JS mode.
<script type="javascript" src="slider.js"><!-- this is the JS for the fancy slider effects --></script>
the ending </script> tag isn't noticed by Rainbow, and it will try to JS-highlight everything until it meets another </script> tag which isn't preceded by a > (at least, that's what I've noticed).
This causes a problem in some websites, e.g. Wikipedia: around line 64, there is such a script tag, and the rest of <head> consists only of bare includes, so Rainbow pretends that a chunk of the head and the body is JS, and then highlights a bunch of unmatched tags that it missed while in JS mode.
1
person has this problem
I have this problem, too!
Tell me when someone solves it.
The more people who report this problem, the more it gets noticed.
The more people who report this problem, the more it gets noticed.
Get Satisfaction loves Zappos because they care about customer service.
-
Inappropriate?You are right, Robert.
I'm able to reproduce this bug. Passing it to codemirror dev group.
Thank you for reporting.
Loading Profile...


