Please use span classes. replace \red with \<span class='warning'> and \blue with \<span class='notice'> (and add a  \</span> at the end of the string)