Menu

#166 syntax highlight messes with "<tag />"

open
nobody
Bug (19)
5
2012-12-11
2012-10-24
Anonymous
No

The new HTML standards asks us to use <br /> instead of <br>, when this is done inside a PHP or javascript variable, the syntax lighlighter of medit strangly acts as if the quote has being closed. For example:

test the colors of the following code in the syntax highlighter (save as test.html):

<html>
<head>
<script>
document.write("This part is OK");

document.write("This part is OK <br /> The syntax highlighter will say that the quote was closed here (and after the real quote close, it will think it was reopened!");

document.write("This part whole part is now all messed up");
</script>
</head><body></body></html>

Now try to remove the <br /> tag or change it to <br> and you'll see the difference

Discussion

  • Yevgen Muntyan

    Yevgen Muntyan - 2012-10-26

    Could you try attached file and see if it works correctly?

     
  • Yevgen Muntyan

    Yevgen Muntyan - 2012-10-26
     
  • Yevgen Muntyan

    Yevgen Muntyan - 2012-10-26

    (html.lang goes into C:\Program Files (x86)\medit\share\medit-1\language-specs or $preifx/share/medit-1/language-specs)

     

Log in to post a comment.