Skip to content
This repository was archived by the owner on Mar 28, 2026. It is now read-only.
This repository was archived by the owner on Mar 28, 2026. It is now read-only.

lit-html.tags does not control syntax highlighting #31

Description

@dbatiste

Trying to get syntax highlighting in css template strings in VS Code using extension. I've tried adding the following to settings.json but it doesn't seem to have any effect. I feel like I must be doing something incorrect... but then again, maybe not?

settings.json:

"lit-html.tags": [
    "html",
    "css"
]

for example, when using css template strings:

import { css } from 'lit-element/lit-element.js';

export const colors = css`
    :host {
        display: block;
        color: blue;
    }
    :host([hidden]) {
        display: none;
    }
`;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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