Community
    • Login

    BUG: Problem with syntax highlighting: Not working on ASP Classic Scripts

    Scheduled Pinned Locked Moved General Discussion
    asphighlighthighlightingbug
    17 Posts 13 Posters 3.8k 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.
    • DirtyEchoD
      DirtyEcho @Ekopalypse
      last edited by

      @Ekopalypse

      Trying to explain me better i link this image: ASP Tags - Notepad++ 7.7.

      The color “yellow” works good, If I change It into the “ASPSYBOL” section It’s displayed correctly; but the content inside the ASP tags should be highlighted in light blue (This image, took by using the previous version of Notepad++, explain me better for sure).

      Any ideas?

      EkopalypseE 1 Reply Last reply Reply Quote 0
      • EkopalypseE
        Ekopalypse @DirtyEcho
        last edited by Ekopalypse

        @DirtyEcho

        asp is no longer the default language for html lexer and has been changed to JS.
        I guess this makes sense, doesn’t it?
        But this means that the attribute asp.default.language needs to be set to 2 if one chooses ASP lexer.
        You might open an issue here.

        If by any chance you are using a scripting language plugin you can set it your self by doing something like editor.setProperty('asp.default.language', 2)

        1 Reply Last reply Reply Quote 4
        • Liga TablasL
          Liga Tablas
          last edited by

          I have same problem. I changed the Lenguaje to ActionScript in the Notepad ++ (in Lenguaje–>A–>ActionScript option menú) and this changed colours. I now this is not solution, but I can see my code in colours, is better than see all in white and black

          1 Reply Last reply Reply Quote 0
          • Jacqui KingJ
            Jacqui King
            last edited by

            I am having the same problem with ASP files. The reality is that there are still many sites running on classic ASP (whether it is fashionable or not). The colour coding worked until I upgraded to 7.7 today, and I have confirmed that it is still working on 7.5.9. Irrespective of the file extension (which is ASP in this case), I should be able to choose the language color-coding from the language menu. If I look at the Style Configurator, asp is still defined correctly, but it is only seeing the <%%> markers and nothing else. Something broke in the upgrade.

            1 Reply Last reply Reply Quote 1
            • Christian GuillodC
              Christian Guillod
              last edited by Christian Guillod

              I have the same problem and I have found that the colour coding still work if you have this line in the beginning of the file:

              <%@LANGUAGE=“VBSCRIPT”%>

              1 Reply Last reply Reply Quote 1
              • donhoD
                donho
                last edited by

                @dail has provided the fix here : https://github.com/notepad-plus-plus/notepad-plus-plus/pull/5708
                The fix will be included in v7.7.1.

                1 Reply Last reply Reply Quote 6
                • Sriram NS
                  Sriram N
                  last edited by

                  Good to see that it’s getting fixed, this will help me. I had this problem too - it would recognize the <% %> code blocks, but would not highlight the language within them (VBScript) correctly unless if the <%@LANGUAGE=“VBSCRIPT”%> line was included.

                  1 Reply Last reply Reply Quote 0
                  • Nathaniel CourtensN
                    Nathaniel Courtens
                    last edited by

                    is anyone using UDL http://docs.notepad-plus-plus.org/index.php/User_Defined_Languages as alternative (for now)? And would they mind sharing their .xml?

                    1 Reply Last reply Reply Quote 0
                    • patrickdrdP
                      patrickdrd
                      last edited by

                      I don’t know if it’s been reported but I renamed a file and syntax highlighting was gone

                      1 Reply Last reply Reply Quote 0
                      • kkmuffmeK
                        kkmuffme
                        last edited by

                        Same exact problem in PHP. NP++ ver 7.6.2 works correctly
                        See: https://notepad-plus-plus.org/community/topic/17774/php-syntax-not-highliting-when-inside-other-language-string-ver-7-7

                        1 Reply Last reply Reply Quote 0
                        • niente0N
                          niente0
                          last edited by

                          Same here, my ASP scripts aren’t highlighted anymore since v7.7.
                          I can confirm it works with Notepad++ 7.6.6, I downgraded until bug is fixed.

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