Community
    • Login

    [BUG] ASP language styler error

    Scheduled Pinned Locked Moved General Discussion
    styleaspbug
    3 Posts 2 Posters 1.4k Views 1 Watching
    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 Offline
      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 Offline
        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 Offline
          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

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors