Convert caret range into highlight on source line