 |
RobMacAF Apprentice
Joined: 09 Jun 2002 Posts: 186 Location: USA
|
Posted: Thu Jan 09, 2003 4:01 am
More colors using MXP |
I have this and it works perfectly, it highlights all that I want multilined. But it uses CW. Is there anyway to use MXP instead so I have a bigger choice of colors. I tried just changing it but it goes infinate loop on me.
#tr {You also see} {
#hi
#t+ hilighteverything
}
#class {hilighteverything} {disable}
#tr {*} {#hi}
#tr {.} {#t- hilighteverything}
#class 0 |
|
|
|
 |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Thu Jan 09, 2003 4:46 am |
quote:
I have this and it works perfectly, it highlights all that I want multilined. But it uses CW. Is there anyway to use MXP instead so I have a bigger choice of colors. I tried just changing it but it goes infinate loop on me.
#tr {You also see} {
#hi
#t+ hilighteverything
}
#class {hilighteverything} {disable}
#tr {*} {#hi}
#tr {.} {#t- hilighteverything}
#class 0
MXP has a COLOR tag, which takes either a color name (red, blue, mxpblue, etc) or an RGB color number (FF0000 = red, for instance):
<color red>this is the text of the link</color>
<color #FF0000>this is the text of the link</color>
Depending on Preference settings and how the tag is being used/stored, you will need to add quotes or quote characters to keep it intact:
#trigger {^highlight word: (%w)$} {#sub {"<color red>"%1</color>"}}
This will get you the broader selection of colors, but MXP isn't going to solve your infinite loop problem. Perhaps you'll need to combine the two triggers giving you the problem?
#trigger {(*)} {#hi;#if (%ends("%1","."}) {#T- hilighteverything} {#noop}
li'l shmoe of Dragon's Gate MUD |
|
|
|
 |
RobMacAF Apprentice
Joined: 09 Jun 2002 Posts: 186 Location: USA
|
Posted: Thu Jan 09, 2003 5:53 am |
Ok, that didn't work at all. The reason I think it gets stuck in a loop is because the way it works now is it checks a word then colors it if it is after You also see until the period. If I change it to MXP then it tries doing that every time.....actually, that gave me an idea.....
|
|
|
|
 |
RobMacAF Apprentice
Joined: 09 Jun 2002 Posts: 186 Location: USA
|
Posted: Thu Jan 09, 2003 2:13 pm |
Ok, my idea got shot down. Still a endless loop
|
|
|
|
 |
|
|
|