Skip to content
Tomas Restrepo edited this page Jul 19, 2016 · 1 revision

There are some options that control how Rainbow Braces work.

Rainbow Coloring Mode

This option controls how brace nesting is interpreted. The default value is 'Unified', in which nested braces use different colors regardless of the brace type. That is, if you had {([ each one would be a different color:

The other possible option is PerBrace. In this case, each brace pair gets its own coloring stack. So nested ( are colored in one sequence, nested { in another, and nested [ in a separate one.

Rainbow Highlight Mode

This option is only used when using Rainbow Highlight through pressing the Ctrl key. This option controls how the caret position is tracked in regards to braces.

For example, if the caret is right on a brace: |(, and this option is set to TrackInsertionPoint, Viasfora would consider the caret to be outside of the opening brace. Hence, the outer scope would be highlighted.

However, if this option is set to TrackNextScope, Viasfora will consider the caret to be inside the scope of the caret next to it, so the inner scope will be highlighted.

Clone this wiki locally