Code highlighter issue in NPP v8.4.5
-
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.
Adding a semicolon.
Comparing versions.
-
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.
-
@Alan-Kilborn Thank you for your comment.
I’ll wait til the next iteration then…