Skip to content

Inconsitent styling of JavaScript line containing template literal #281

@richardW8k

Description

@richardW8k

Steps to Reproduce

  • Add a SyntaxHighlighter Code block with the language set to JavaScript, containing a script that includes a template literal
  • View the page to find the line containing the template literal has inconsistent styling

What I Expected

The template literal uses string styles, and the code after it the same plain styles as the code before it.

What Happened Instead

Code after the opening backtick all uses the preprocessor styles.

PHP / WordPress / SyntaxHighlighter Evolved version

PHP 8.2
WP 6.6.2
SHE 3.7.1

Browser / OS version

Arc 1.78.1
macOS 14.7

Screenshot / Video

Image

Context / Source

https://docs.gravityforms.com/gform-submission-pre_submission/

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions