I am trying to show the user which lines are read only. This is how it should look like (screenshot is edited):

How can I can acomplish this? Adding a BackgroundRenderer would not work because obviously the text is not overlayed. Layers will work but I would have to handle the scrolling myself and performance might be an issue. What would be the best performing option?