Menu

#650 script hilighting is messed up with ASP

Bug
closed-fixed
3
2023-07-26
2008-01-29
Anonymous
No

I'm currently using Notepad++ 4.0.2 because this is the last clean version before this bug appeared and still continues.

Example: an ASP file:

<% 'comment %>
<html>
</html>

the script hilighting continues past the end of the script tag "%>" and into the html code below. The workaround is to put the tags and comment on separate lines. I hope this gets fixed in a future release. Thanks.
-Barrie

Related

Bugs: #1942

Discussion

  • Neil Hodgson

    Neil Hodgson - 2008-01-29
    • priority: 5 --> 3
    • assigned_to: nobody --> nyamatongwe
    • status: open --> open-accepted
     
    • Peter

      Peter - 2013-02-26

      Neil, could you look into this? A fix is provided:

      http://sourceforge.net/p/notepad-plus/bugs/2890/

      thanks.
      P.

       
  • Neil Hodgson

    Neil Hodgson - 2008-01-29

    Logged In: YES
    user_id=12579
    Originator: NO

    I won't be working on this myself.

     
  • kger

    kger - 2008-02-27

    Logged In: YES
    user_id=65212
    Originator: NO

    This appears to have started with 1.72 of the lexer; 1.71 does not exhibit this behavior.

     
  • kger

    kger - 2008-03-04

    Logged In: YES
    user_id=65212
    Originator: NO

    By the way, you can copy the 1.71 version of the lexer DLL into the Notepad++ directory and it will restore the correct syntax highlighting behavior. I just keep a copy of that DLL around and overwrite the installed one every time I install a new version of NPP.

     
  • Peter

    Peter - 2013-02-26

    This is still not fixed in version 227 and I found a solution here:

    http://sourceforge.net/p/notepad-plus/bugs/2890/

    This highly visible bug annoys me everyday!

     
    • Neil Hodgson

      Neil Hodgson - 2013-02-26

      The patch undoes a fix from December 2006 which was to handle this example

      <%@ LANGUAGE="VBSCRIPT" %>
      <!-- #INCLUDE FILE="INCLUDES/TEST.ASP" -->
      <%
      'Here is error number 4:
      'objXML.loadXML("<?xml version='1.0' encoding='UTF-8'?><ACTIONRESULTXML/>")
      
      Dim strTest
      strTest = "MySample"
      %>
      
       

      Last edit: Neil Hodgson 2013-02-26
      • Peter

        Peter - 2013-02-26

        Ok, so in your opinion where should a fix (any fix) be applied to? Function "stateAllowsTermination" or some other place? I am a developer myself, I could look into this but I need some clues!

        Thanks!

         
        • Neil Hodgson

          Neil Hodgson - 2013-02-26

          Discovering where and what to change is the work involved in fixing this. I have already said that I won't be working on this issue myself.

           
  • Zufu Liu

    Zufu Liu - 2022-04-09
    • labels: Scintilla --> Scintilla, lexilla, asp
     
  • Zufu Liu

    Zufu Liu - 2023-07-22
    • status: open-accepted --> open-fixed
     
  • Neil Hodgson

    Neil Hodgson - 2023-07-26
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB