Implement marking of regions in the text