Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ General ➜ Using Multiple Highlights in a Single Word

Using Multiple Highlights in a Single Word

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Khalikryst   USA  (2 posts)  Bio
Date Tue 18 Dec 2012 07:45 AM (UTC)
Message
I'm sorry if this has been posted somewhere else in the past, but while I have figured out how to highlight multiple words in a single line, I don't know if it's possible to cause multiple highlights in a single word. My original thought was that if I created two triggers that would do it but it wasn't working that way... ^<\bdebate\b> and then using ^<\b......\b> as the other match but i'm assuming they overlayed and only one worked which was the ^<\bdebate\b>. I'm trying to highlight the < > a different color then the Debate in the middle... Is this possible?
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #1 on Tue 18 Dec 2012 09:48 PM (UTC)
Message
Can you post both triggers you tried please?

Template:copying For advice on how to copy aliases, timers or triggers from within MUSHclient, and paste them into a forum message, please see Copying XML.


You should be able to do both multiple words and multiple highlights within a word.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Osilion   (2 posts)  Bio
Date Reply #2 on Thu 09 Jan 2014 12:55 AM (UTC)
Message
Apologies for thread necromancy, but I am having a similar issue. I am trying to highlight the entire line for any pages/whispers that come my way, and highlight a list of names independently. With both a single word highlight set up for the name, and a line highlight set up to color the line, I get a line that is highlighted properly for a whisper/page, but the name will not highlight properly. If I uncheck "keep evaluating" on my single word highlight, the opposite happens, I get the name highlighted, but not the line of the whisper/page. Is this an issue with order-of-operations? How do I get it to apply the line highlight, and then the word highlight on top of it? Hopefully the system will notify me by mail when this gets a reply. I know I'll forget to dig into the forums to check for this!
Top

Posted by Osilion   (2 posts)  Bio
Date Reply #3 on Thu 09 Jan 2014 01:18 AM (UTC)
Message
WOOO, solved it myself after some digging! For anyone else facing this problem, lower the "sequence" integer in the trigger settings for your line to a lower number so it gets executed first! I set all my system-level line highlights (pages, whispers, system messages, etc.) to 1 so they get executed first!
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #4 on Thu 09 Jan 2014 08:17 PM (UTC)
Message
Good idea. A low-sequence, "keep evaluating" trigger should do that OK.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


19,392 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.