Sticky top line that stays fixed/frozen vertically at the top of the view?

I am new to Codemirror, so please forgive me if this is a RTFM moment.

Is it possible to have the first line to always display, this means, it stays fixed vertically and does not scroll away, this means it is frozen at the top of the view? How?

No. You can put a panel with some other content on top of the editor with some content in it, but the first line is part of the document, and scrolls along with the rest of the content. (Of course, you could put a separate editor holding the first line in a panel, and remove/hide the first line in the editor, to maybe get an effect like this.)

1 Like

In that case I will probably go for a separate editor at the top as soon as the first editor scrolls away or similar hackery to give the illusion of a vertically fixed first line.

Thank you for the quick answer.