Sublime Forum

{{ matching }}

#1

I work sith Hugo that uses Go templating where {{…}} are widely used.
Sometimes these vitally important curly braces encompass big chunks of code and seeing the starting {{ tag I do very much need an instrument that would show me the matching (closing) tag }}.
AFAIK there is no such thing in Sublime Text 4.
Would be very happy if you prove me wrong.
Thanks!

0 Likes

#2

I took a quick look at Hugo; does the built-in HTML (go) syntax not work for you?

0 Likes

#3

Regardless choosen syntax ST highlights matching brackets and enables navigating between them via ctrl+m.

It however highlights a single brace only, not both {{ or }} at the same time.

grafik

Same is true for BracketHighlighter, which also displays gutter icons for matching brackets.

grafik

As BracketHighlighter is very flexible I wouldn’t be surprised highlighting both braces would be possible with custom set of rules.

1 Like