How to color brackets?


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?


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:


Do you mean like this?