There are other ways to do it, but here's 1 way I described here:
https://forums.mirc.com/ubbthreads.php/topics/270188/enhanced-highlight-capabilities