implementation of code highlight