Skip to content

Autocomplete and syntax highlighting for style attributes #381

@techniq

Description

@techniq

Coming from React/JSX, you could get the list of CSS properties within the style property/attribute and have syntax highlighting.

It uses object notation instead of a string, although this surprising this still shows up within a Svelte component (albeit not supported). I figure due to the use of svelte2tsx

image

image

It would be useful if the same was supported within Svelte when using the style attribute (string).

image

image

It would also be helpful if the expressions within the values were highlighted as such (and not just shown as one big string).

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions