on *:text:*:*: { if (word isin $1-) { echo $replace($1-,word,colors and word stuff) | haltdef } }

hope that gives u a bit of an idea =/