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


#1

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.


#2

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