Community
    • Login

    [BUG] ASP language styler error

    Scheduled Pinned Locked Moved General Discussion
    styleaspbug
    3 Posts 2 Posters 1.1k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • VeriDigitalV
      VeriDigital
      last edited by

      Styler is having trouble with the ASP language.
      if the code contains <?xml and <![CDATA problem experienced.
      The problem is solved when the xml or cdata codes deleted.
      Note: experiencing problems for a long time. I’m tired of this now.

      Screen: https://image.ibb.co/jBxwDn/bug.png
      Styler Language: ASP

      Notepad++ v7.5.6 (64-bit)
      Build time : Mar 19 2018 - 00:23:17
      Path : C:\Program Files\Notepad++\notepad++.exe
      Admin mode : OFF
      Local Conf mode : OFF
      OS : Windows 10 (64-bit)
      Plugins : DSpellCheck.dll mimeTools.dll NppConverter.dll

      1 Reply Last reply Reply Quote 0
      • cipher-1024C
        cipher-1024
        last edited by

        The built in syntax highlighting comes from Scintilla and there are some ASP highlighting bugs already open on the Scintilla bug tracker, but nothing that matches this exactly. You could try filing a bug there. There’s an open bug for ASP highlighting from 2008 so it may be a while :/

        I noticed that if you put a space between the msg tag and the CDATA, the highlighting fixes itself, but the next time you open the file, it’s back to being messed up. A truly hacky work-around would be to break up the trouble spot (bracket). This is your original text:

        <%
          xml= "<?xml version='1.0' encoding='UTF-8' ?>"
          xml = xml & "<msg><![CDATA["hello"]]></msg>"
          response.write "hello"
        %>
        

        If you change it to this:

        <%
          xml= "<?xml version='1.0' encoding='UTF-8' ?>"
          xml = xml & "<msg><" & "![CDATA["hello"]]></msg>"
          response.write "hello"
        %>
        

        Not pretty, but it keeps the highlighting sane. IDK if that breaks anything in asp, but you could try it.

        Good Luck

        VeriDigitalV 1 Reply Last reply Reply Quote 2
        • VeriDigitalV
          VeriDigital @cipher-1024
          last edited by

          @cipher-1024 Thank you for the answer. Good idea for workaround. At least highlighting will not fall into constant error.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors