How to highlight/set bg-color to multiple lines at the same time?

Hello there!

Is there a way to highlight/set bg-color to multiple lines at the same time?

I know there is a method called addLineClass but it only receives one line at a time and I need to set the background-color at multiple lines at the same time.

You’ll have to loop over the lines and set them one at a time. Use operation to avoid superfluous redraws.

1 Like