Skip to content

How do I get highlights working for templ files? #8154

Answered by kirawi
Teajey asked this question in Q&A
Discussion options

You must be logged in to vote

You need to also write highlight queries: https://docs.helix-editor.com/guides/adding_languages.html#queries

It won't work if the queries are just in the grammar folder -- they have to be in runtime/queries

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@Teajey
Comment options

@kirawi
Comment options

Answer selected by Teajey
Comment options

You must be logged in to vote
2 replies
@Teajey
Comment options

@OnFireByte
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants