Monaco Editor : How to fix certain line in source code

383 Views Asked by At

How can I set a line fixed in Monaco Editor ?

One can edit the content before or after the fixed line. But she cannot edit or remove the fixed line.

1

There are 1 best solutions below

0
Mike Lischke On BEST ANSWER

It is not possible to lock (aka. read-only) individual lines. You can only set the entire editor to read-only.