pushqrdx / vscode-inline-html

🎨 Adding Syntax Highlighting, Emmet, IntelliSense support for ES6 Template Strings in Visual Studio Code.
https://marketplace.visualstudio.com/items?itemName=pushqrdx.inline-html
GNU General Public License v3.0
54 stars 15 forks source link

Feature Request: Support for css styles without selectors #37

Closed brandonmcconnell closed 1 year ago

brandonmcconnell commented 1 year ago

Currently, this is supported:

/*css*/`
  .selector {
    display: block;
  }
`

But this is not:

/*css*/`
  display: block;
`

I propose adding a new syntax specific for CSS styles—a commonly used pattern when adding styles to an element inline in JavaScript frameworks—like this:

/*style*/`
  display: block;
`
pushqrdx commented 1 year ago

@brandonmcconnell I have updated the extension on the store to 0.3.7 which includes a few fixes and new support for style tags just as requested, please give it a go and report any issues.