Q&A: Read-only regions

This question was asked recently on the (internal) editor discussion alias: Is it at all possible to make parts of the text buffer read-only? Could I, for example, mark certain spans as not modifiable, so that the user wouldn’t be able to change their contents? The short answer is yes; in fact, marking regions of…

8