Community
    • Login

    Code highlighter issue in NPP v8.4.5

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 371 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.
    • James RosemaryJ
      James Rosemary
      last edited by James Rosemary

      I have an issue with code highlighting in Notepad++ 8.4.5. I think it is a regression from the previous version.
      When I open a Javascript source type file that starts with a PHP opening tag, the code highlighter highlights the PHP code but does not recognise the JavaScript code (first image).
      By adding a semicolon as the first character of the source code, which is syntactically correct in JavaScript, the code highlighter now correctly recognises the JavaScript code but not the PHP code (second image).
      However, this was not the case in Notepad++ version 8.4.4 (third and fourth image comparing versions) which recognises both types of languages without problems.
      Tested in the installable version as well as in the portable version without plugins.

      Opening a JavaScript source with embedded PHP code.
      npp-8-4-5_01.png

      Adding a semicolon.
      npp-8-4-5_02.png

      Comparing versions.
      npp-8-4-5_03.png
      npp-8-4-4_01.png

      Alan KilbornA 1 Reply Last reply Reply Quote 0
      • Alan KilbornA
        Alan Kilborn @James Rosemary
        last edited by Alan Kilborn

        @James-Rosemary

        I don’t have any specific knowledge about the problem you relate, but one of the enhancements to N++ v8.4.5 was:

        Update to Scintilla 5.2.4 and Lexilla 5.1.8

        As Lexilla is responsible for the aspect you discuss, perhaps a problem was introduced there, between 5.1.8 and its previous version.

        James RosemaryJ 1 Reply Last reply Reply Quote 1
        • James RosemaryJ
          James Rosemary @Alan Kilborn
          last edited by

          @Alan-Kilborn Thank you for your comment.
          I’ll wait til the next iteration then…

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