You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.
Allow code comments like /* html */ which immediately precede a string to trigger language-appropriate syntax highlighting.
Motivation
One sometimes has strings which one does not need or want to use a tagged template literal before it, but does want to trigger highlighting.
In some circumstances, like with hyperHTML, while I can name my render function as html to get the benefits of syntax highlighting, when I have children like within a map that returns a string, the string should not be passed to the same html render function, so the inner content does not get the benefit of syntax highlighting.
Describe alternatives you've considered
I could use another function which has its own html, but this is not practical, especially given that it helps to see smaller bits of template content within the larger template when manageable in size.
language-javascript-plus was doing this for a while, but:
It is not working for me at present
It just seems like something which ought to be supported
Thanks!
Additional context
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Summary
Allow code comments like
/* html */
which immediately precede a string to trigger language-appropriate syntax highlighting.Motivation
One sometimes has strings which one does not need or want to use a tagged template literal before it, but does want to trigger highlighting.
In some circumstances, like with hyperHTML, while I can name my
render
function ashtml
to get the benefits of syntax highlighting, when I have children like within amap
that returns a string, the string should not be passed to the samehtml
render function, so the inner content does not get the benefit of syntax highlighting.Describe alternatives you've considered
I could use another function which has its own
html
, but this is not practical, especially given that it helps to see smaller bits of template content within the larger template when manageable in size.language-javascript-plus
was doing this for a while, but:Thanks!
Additional context
The text was updated successfully, but these errors were encountered: