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

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

addLineClass might be what you want.

yes that what I want thanks @marijn

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