Optimization: Highlight selected lines only (when modifying the file)