 |
Oracle Apprentice
Joined: 29 May 2002 Posts: 121
|
Posted: Tue Jul 02, 2002 7:06 pm
Word Highlights |
I was creating some hightlight triggers and I can't figure out how to stop Zmud from highlight strings of that word in other words.
For example, let's stay I want to highlight red as the color red but the problem I get is the letters "red" is highlighted in words that contain "red" and not just the whole word red.
Any comments? |
|
|
 |
TonDiening GURU

Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: Tue Jul 02, 2002 7:18 pm |
Depends on the word you are trying to catch.
Try grabbing the thing you wish to highlight
with a following space or punctuation.
#TRIGGER {red[ ,.!?]} {#CW red}
Other kinds of words work well with a preceeding
space and/or capturing it from the beginning
of the line.
#TRIGGER {^Red} {#CW red}
#TRIGGER { red} {#CW red}
Ton Diening
Providing untested answers that tend to be
more complicated than others.  |
|
|
 |
Oracle Apprentice
Joined: 29 May 2002 Posts: 121
|
Posted: Tue Jul 02, 2002 9:15 pm |
Actually, I'm not doing a trigger on the specific word but instead setup a trigger on a stringlist. So would this be the same thing? Not at home right now so can't try it but just wanted an idea so I have something to work with later.
Thanks
#trigger {([ ]@redcolorlist}) {#CW bold,red} |
|
|
 |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Tue Jul 02, 2002 9:25 pm |
quote:
Actually, I'm not doing a trigger on the specific word but instead setup a trigger on a stringlist. So would this be the same thing? Not at home right now so can't try it but just wanted an idea so I have something to work with later.
Thanks
#trigger {([ ]@redcolorlist}) {#CW bold,red}
Generally, you'll want to include a space or other identifying mark on BOTH sides of the word/wordlist. Also, if you don't like having the extra stuff (ie, punctuation) colored, I'd recommend you use %ansi() or the MXP color tag.
li'l shmoe of Dragon's Gate MUD |
|
|
 |
|
|