|
Ilkthor Newbie
Joined: 22 Nov 2006 Posts: 1 Location: Australia
|
Posted: Wed Nov 22, 2006 2:47 pm
Coloring 1 word in 1 type of sentence |
I'm very new to Zmud triggering, and have a problem with word coloring.
I would like to color three words in this sentence:
Some fairly recent tracks blah leaving east.
This is easy enough, but I do not want to color these words outside of this sentence! Zmud remembers the colors given to these words, and colors them in all other instances. How do I prevent this?
I understand how to capture the words:
Some (%w) (%w) tracks*leaving (%w).
Thanks in advance. |
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: Wed Nov 22, 2006 3:21 pm |
Perhaps use #PCOL.
PCOL Example
#TRIGGER {(%w) tells you} {#PCOL mxpblue %x1}
Colors the text matched by the (%w) in the pattern (XStart and XEnd given by %x1 variable) bright blue.
#TRIGGER {^Some (%w) (%w) tracks*leaving (%w). $} {#PCOL yellow %x1;#PCOL yellow %x2;#PCOL orange %x3} |
|
|
|
|
|