Community
    • Login

    Syntax Highlighting (BASH/shell) question/bug

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    6 Posts 3 Posters 3.0k 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.
    • Trevor ST
      Trevor S
      last edited by

      Hello, hopefully this is something simple I’ve missed, but I just updated N++ (Debug Info at bottom) and a bash script I’ve been working on now has an issue with syntax highlighting. The highlighting of what appears to be a $( ) block starts, but never finishes, effectively blocking the highlighting of the rest of the file. I have attached a screen snip of a few lines surrounding the start of the issue. Line 60 was added just to show that it works sometimes, and I verified that there are only spaces and tabs for whitespace on line 61. Why is the highlighting not stopping at where the red arrow points?

      Screenshot_N++_bash-highlight-issue_2023-08-10.png

      Debug Info:

      Notepad++ v8.5.4   (64-bit)
      Build time : Jun 17 2023 - 20:42:45
      Path : C:\Program Files\Notepad++\notepad++.exe
      Command Line : "Z:\reposync\doReposync.sh"
      Admin mode : OFF
      Local Conf mode : OFF
      Cloud Config : OFF
      OS Name : Windows 10 Home (64-bit)
      OS Version : 22H2
      OS Build : 19045.3324
      Current ANSI codepage : 1252
      Plugins : 
          mimeTools (2.9)
          NppConverter (4.5)
          NppExport (0.4)
      
      
      PeterJonesP 1 Reply Last reply Reply Quote 1
      • PeterJonesP
        PeterJones @Trevor S
        last edited by

        @Trevor-S ,

        That is known.

        It is described here and here as being the result of a change made in one of the libraries that Notepad++ uses, called “Lexilla”.

        The Lexilla team has fixed the issue on their end; the fix is in Lexilla v5.2.6.

        The newest Notepad++ release v8.5.5 includes Lexilla v5.2.6, so that version should hopefully fix your problem. (If you’re wondering why your just-updated Notepad++ v8.5.4 is older than the most recent v8.5.5, it’s because v8.5.5 is brand new and hasn’t been triggered for auto-update yet.)

        Michael VincentM Trevor ST 2 Replies Last reply Reply Quote 3
        • Michael VincentM
          Michael Vincent @PeterJones
          last edited by

          @PeterJones said in Syntax Highlighting (BASH/shell) question/bug:

          The newest Notepad++ release v8.5.5 includes Lexilla v5.2.6, so that version should hopefully fix your problem.

          @Trevor-S :

          Is this what you expect?

          e19e2045-fa0d-47f9-bc10-2c415a850470-image.png

          Cheers.

          Trevor ST 1 Reply Last reply Reply Quote 1
          • Trevor ST
            Trevor S @PeterJones
            last edited by Trevor S

            @PeterJones Thanks for the great info and explanation! Is there a way I can mark my question answered or equivalent?

            I manually updated to 8.5.5 and am now seeing the behavior I expect. Thanks again!

            Edit: Added more results.

            1 Reply Last reply Reply Quote 2
            • Trevor ST
              Trevor S @Michael Vincent
              last edited by

              @Michael-Vincent Yes indeed, thanks!

              Michael VincentM 1 Reply Last reply Reply Quote 1
              • Michael VincentM
                Michael Vincent @Trevor S
                last edited by

                @Trevor-S said in Syntax Highlighting (BASH/shell) question/bug:

                @Michael-Vincent Yes indeed, thanks!

                Great! Then if you’re comfortable, upgrade now since 8.5.5 is available; otherwise, wait for the autoupdate usually about 7-10 days after the release - if all goes well.

                No need to mark the question answered, it just stays like this for posterity.

                Cheers.

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