vscode-antlers-language-server icon indicating copy to clipboard operation
vscode-antlers-language-server copied to clipboard

[Syntax Higlight] handle variable as HTML tag

Open jimblue opened this issue 8 months ago • 0 comments

Which Antlers Toolbox products are you requesting a feature for?

  • [X] Antlers Toolbox for VS Code
  • [ ] Antlers Toolbox for VS Code Formatter
  • [ ] Formatter CLI
  • [ ] Antlers Prettier Plugin
  • [ ] Antlers Syntax Highlighting (external systems - not VS Code)

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Sometimes, it's necessary to use a different HTML tag depending on the context. For exemple, the following card component, could have a card_html_tag that is a div or an article:

<{{ card_html_tag }} class="card">
    <h2>Card Title</h2>
</{{ card_html_tag }}>

But for now, this break the syntax highlight:

Screenshot 2024-06-19 at 20 39 39

jimblue avatar Jun 19 '24 18:06 jimblue