How to color brackets?


#1

Hello, I am trying to create a simple package that colors brackets in code. My question is how could I change style (brackets color) as the user types, not only setting the color through a theme?


#2

The only way to color the actual glyphs themselves is by using the syntax highlighting system. You can use Decorations to create background highlights and such like the bracket-matcher package.

More information is available in this topic:


#3

Do you mean like this?