add basic implementation for highlighted code segments