Is it possible to inject HTML highlighting into JS for web components? #11401
Unanswered
David-Else
asked this question in
Q&A
Replies: 1 comment
-
Tagged templates should work for this as you noticed. I wonder if we are safe to assume that assigning a string literal to helix/runtime/queries/nix/injections.scm Lines 13 to 33 in 0a4432b |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
It would be great to be able to see syntax highlighting in this HTML. It requires a plugin in VSCODE: https://marketplace.visualstudio.com/items?itemName=EldarGerfanov.leet-html, maybe treesitter can deal with it in Helix?
EDIT I just found out tagged template literals work!
Beta Was this translation helpful? Give feedback.
All reactions