Menu

#26 Color coding wrong in javascript ('<' taken as tag start)

open
nobody
jsp (21)
5
2003-02-24
2003-02-24
No

The following code is displayed in the wrong colors, it
is inside a piece of javascript, so it should be parsed
as a less-than but is instead interpreted as the
beginning of a tag.

Sample Code:

<html>
<body>
<script>

for(var i = 0; i < 100;++i)
{

}
//This should NOT display in green, the i<100 above is
not the beginning of a tag!
</script>

</body>
</hmtl>

Discussion

  • Roberto Leibman

    Roberto Leibman - 2003-02-24
    • summary: Color coding wrong in javascript (&lt; taken as tag start) --> Color coding wrong in javascript ('<' taken as tag start)
     
  • Nobody/Anonymous

    Logged In: NO

    see also feature request 578595

     

Log in to post a comment.