Skip to content

Draft: contextengine: Implement support for rainbow parentheses

JCWasmx86 requested to merge JCWasmx86/gtksourceview:rainbow into master

This is a quick implementation of a feature I really miss from VSCode: Colored Parentheses

image

This makes it easier to see where a block starts/ends.

This is a draft as I'm not sure, whether you even want to support it and whether GtkSourceView is the right place or whether it should be e.g. some Builder plugin.

That's why it's currently with a bit of hardcoding:

  • Not disableable
  • Hardcoded colors (And the color selection is more like "First colors I could think of")
  • Check, whether we should re-highlight the entire document on scroll/movement, as currently the colors are "dancing"

How it looks currently: image

Edited by JCWasmx86

Merge request reports