undoing comments the same way as undoing annotation marks

Slight differences here and there. But broadly the same logic - overlay a white rectangle
on top of written text