Proof-of-concept: lazy measureLineInner method
fix bug with long unhighlighted lines
attempt to handle marked text