-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Closed
Description
Is there an existing issue for this?
- I have searched the existing issues
Description of the Issue
This example is syntax highlighted incorrectly in HTML language but works in JavaScript language.
JavaScript Template literals use HTML TAG
<script>
var variant = `<p>Text</p>`;
console.log(variant);
for (var i = 0; i < 10; i++) {}
</script>Notepad++ -> Language -> HTML
Notepad++ -> Language -> JavaScript
Steps To Reproduce
- Copy the example to Notepad++.
- Set the syntax language to
HTML. - Look at the incorrect syntax highlighting.
- Set the syntax language to
JavaScript. - Look at the correct syntax highlighting.
Current Behavior
The syntax highlighting is incorrect using HTML language for JavaScript Template literals use HTML TAG.
Expected Behavior
The syntax highlighting is correct, as shown in the JavaScript language example screenshot.
Debug Information
Notepad++ v8.6.8 (64-bit)
Build time : Jun 4 2024 - 00:30:00
Path : C:\Program Files\Notepad++\notepad++.exe
Command Line : "C:\Program Files\Notepad++\change.log"
Admin mode : OFF
Local Conf mode : OFF
Cloud Config : OFF
Periodic Backup : ON
OS Name : Windows 11 Pro for Workstations (64-bit)
OS Version : 23H2
OS Build : 22631.3737
Current ANSI codepage : 950
Plugins :
ComparePlugin (2.0.2)
HexEditor (0.9.12)
mimeTools (3.1)
NppConverter (4.6)
NppExport (0.4)
NppPluginOpenHost (1.1)Anything else?
JavaScript reference template literals (Template strings)
W3schools template strings example
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels

