Colorize matched substrings in terminal output