Skip to content

[BUG] Cannot change the style of SCE_HJA_TEMPLATELITERAL and SCE_HJ_TEMPLATELITERAL #15821

@rdipardo

Description

@rdipardo

Is there an existing issue for this?

  • I have searched the existing issues

Description of the Issue

Lexilla 5.4.1 added new styles for JavaScript template literals in <script> elements: ScintillaOrg/lexilla@3a78ad7

As of Notepad++ 8.7.1, none of the standard issue themes provide these styles. Template literals are shown with the default foreground and background. There are no options to change them in the "Style Configurator", e.g.,

default default stylers xml
dark mode default dark mode default
"Black board" blackboard theme
"Navajo" navajo theme
"Ruby Blue" ruby blue theme

Steps To Reproduce

  1. Ctrl+N

  2. Language > H > HTML

  3. Paste this text:

    <script>
      const a = parseInt("5");
      const b = parseInt('10');
      console.log(`Fifteen is ${a + b} and
      not ${2 * a + b}.`);
      // "Fifteen is 15 and
      // not 20."
    </script>
    
  4. Settings > Style Configurator... > Language: JavaScript (embedded)

  5. Look for a client-side or server-side template literal style

  6. Find nothing :(

Current Behavior

No options in the "Style Configurator" to change the appearance of embedded JavaScript template literals.

Expected Behavior

Options in the "Style Configurator" for client-side JS template literals (SCE_HJ_TEMPLATELITERAL, id 53) and server-side JS template literals (SCE_HJA_TEMPLATELITERAL, id 68)

Debug Information

Notepad++ v8.7.1   (64-bit)
Build time : Oct 31 2024 - 00:48:56
Path : C:\dev\npp.8.7.1\notepad++.exe
Command Line :
Admin mode : OFF
Local Conf mode : ON
Cloud Config : OFF
Periodic Backup : ON
OS Name : Windows 10 Pro (64-bit)
OS Version : 22H2
OS Build : 19045.5131
Current ANSI codepage : 1252
Plugins :
    mimeTools (3.1)
    NppConverter (4.6)
    NppExport (0.4)


### Anything else?

_No response_

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions