There are any function in codemirror take line number as input to highlight line ?


#1

I want when I click on button to call function pass to it as input number of line I want to highlight it and when I click to another button to remove highlight the line … so what I want is function take input number of line and the output the all line highlight … and function take input number of line and the output remove the highlight on line


#2

addLineClass might be what you want.


#3

yes that what I want thanks @marijn


#4

Its possible to select multiples lines at the same time? addLineClass only selects one at a time.