#3760 Syntax highlight is wrong for HTML mode

funa take

The color of ">" of script tag in HTML mode is wrong.

<script type="text/javascript">

The color of the last ">" in the second line is wrong.


  • Dale Anson

    Dale Anson - 2012-12-09

    I can't reproduce this. Would you attach a screen shot and list your jEdit version, java version, OS, etc?

  • funa take

    funa take - 2012-12-10

    Screen shot

  • funa take

    funa take - 2012-12-10

    I did upload screenshot.
    I use revision 22548 of https://jedit.svn.sourceforge.net/svnroot/jedit/jEdit/trunk.

    Active log
    19:58:31 [main] [message] Log: java.version=1.7.0_03
    19:58:31 [main] [message] Log: java.vm.version=22.1-b02
    19:58:31 [main] [message] Log: java.vm.name=Java HotSpot(TM) Client VM
    19:58:31 [main] [message] Log: java.runtime.version=1.7.0_03-b05
    19:58:31 [main] [message] Log: java.runtime.name=Java(TM) SE Runtime Environment
    19:58:31 [main] [message] Log: java.vendor=Oracle Corporation
    19:58:31 [main] [message] Log: java.compiler=null
    19:58:31 [main] [message] Log: os.name=Windows XP
    19:58:31 [main] [message] Log: os.version=5.1
    19:58:31 [main] [message] Log: os.arch=x86

    I think ">" of script tag for html mode is classified as the operator.

  • Marc Häfner

    Marc Häfner - 2012-12-10

    Yes, the ">" is tagged as OPERATOR (and not MARKUP) since everything after "<script" is delgated to JavaScript mode. A patch adressing this issue is available.

  • Dale Anson

    Dale Anson - 2012-12-10
    • assigned_to: nobody --> daleanson
    • status: open --> closed

Log in to post a comment.