Synchronizes line highlighting.