Sublime Forum

Highlight handlebar braces

#1

I have a number of html files that contain handlebar items beginning with {{ and ending with }}. Some examples are
{{variable}}
{{#each index}} ... {{/each}}
{{>partial.html}}
I would like to highlight the beginning and ending double braces, but I’m not sure how to do that. Any suggestions would be appreciated.

0 Likes

#2

There is a package for Handlebars https://packagecontrol.io/packages/Handlebars

0 Likes

#3

Yes. I am aware of the handlebars package. I didn’t like the highlighting of this package and it uses an old syntax format and color scheme that is hard to modify. Instead, I loaded the handlebar syntax file from https://github.com/seanCodes/handlebars-sublime-syntax that I found easier to work with.

0 Likes