WebReflection / vscode-literally-html

Adds syntax highlighting for html inside of JavaScript and TypeScript tagged template strings
https://marketplace.visualstudio.com/items?itemName=webreflection.literally-html
MIT License
34 stars 6 forks source link

Support for template properties #5

Closed st-schneider closed 4 months ago

st-schneider commented 6 years ago

Can you add support for adding highlight support for structures like

{
  template: `
    <div></div>
  `
}

by extending the regex maybe like so

"begin": "(?x)\\.*(?:[a-zA-Z]+\\.)?(template:\\s|\\b(template:\\s|adopt|bind|bound|hyper|hyperHTML|html|raw|render|svg|view|wire)\\b)(?:\\([^\\)]*?\\))?(`)",
frank-dspeed commented 4 years ago

adding support for this pattern

//The patttern
: `.*`

also

//The patttern
= `.*`
WebReflection commented 4 years ago

PR welcome 👋

WebReflection commented 4 months ago

Added a WARNING in the README with suggested alternatives: https://github.com/WebReflection/vscode-literally-html/tree/master?tab=readme-ov-file#warning