Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Code highlighter issue in NPP v8.4.5

    Help wanted · · · – – – · · ·
    2
    3
    92
    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 Rosemary
      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 Kilborn 1 Reply Last reply Reply Quote 0
      • Alan Kilborn
        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 Rosemary 1 Reply Last reply Reply Quote 1
        • James Rosemary
          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
          Copyright © 2014 NodeBB Forums | Contributors