Draw a "color rect" in the gutter, depending on the current line code


#1

Hi, I would like to be able to draw a “color rect” in the gutter, depending on the current line code
example :
If my current line is Preformatted text{“wName”:“wsNodeDevDocumentsManager”,“wColor”:"#ddc4c4"},

I would like to draw a small rectangle filled with ‘#ddc4c4’. (See screenshot below)
(Just like in the Idea “intellij” editor)

What would be the best approach.
Thanks!

Capture


#2

See the gutters option and the addGutterMarker method.