Codemirror 6: Move cursor to specific line and mark its text

Is there a way to programatically move cursor to a given line on editor and then highlight text of this line?

Yes, there is, but this is not really a place where people do your work for you — I wrote a lot of docs, and to use this software you’ll have to read some of them.

I’m currently reading the docs, but coudn’t find something that can help me with this yet. Just thought the forum would be a good place to ask for help.
Anyways, thanks for your reply.