Skip to content

Syntax highlighting and autocompletion does not work in JavaScript template literals #76

@samwarnick

Description

@samwarnick

My project uses JavaScript template literals and I noticed that syntax highlighting and auto completion does not seem to work. Suggestions for Alpine attributes like @click, x-data, etc. do work, but the values get no highlighting or suggestions like they would in a plain HTML file. You can see that the vanilla onclick does get highlighting.

Maybe there is some language injection setting I need to change?

Template literal:
Image

HTML file:
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions