Skip to content

Syntax Highlighting For JavaScript Template Literals #1815

@karamfd

Description

@karamfd

Current issue

JavaScript template literals inside a string look like regular text so they are harder to debug in case of errors.

console.log(my name is ${name})

The solution you'd like

In the example below, the Github syntax highlighter makes it easier for me to read the JavaScript template literal ${name} inside the string.

console.log(`my name is ${name}`)

Alternatives you've considered

I looked at the syntax highlighter but haven't attempted to figure out if this feature can be added without needing to rewrite an entire syntax highlighter from scratch to be honest.

Feel free to close this issue if this feature is out of scope.

CotEditor version

5.1.1

macOS version

15.3.1

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurefeature requests from userssyntax highlightissues related to syntax highlighting

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions