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.
 Entire forum ➜ MUSHclient ➜ General ➜ Trigger to change color, but keep font style as-is

Trigger to change color, but keep font style as-is

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


Posted by Ulenspiegel   (5 posts)  Bio
Date Tue 27 Jun 2017 01:02 PM (UTC)
Message
Hello.

I wonder if there's a way to make a trigger that would change color of the line, but would leave other attributes of arriving text - such as bold and/or underline - intact? My case is, a text arrives from the server with some fragments underlined, bold or colored. I'm highlighting whole line in certain color in a trigger - but that seems to be stripping bold/underline attributes along the way. (Better yet, I would rather color the line and then reapply original attributes, including server-colored pieces to override my highlighting, but I suspect it'd be quite involved.)
Top

Posted by WillFa   USA  (525 posts)  Bio
Date Reply #1 on Wed 28 Jun 2017 12:05 AM (UTC)
Message
http://www.gammon.com.au/scripts/doc.php?general=triggers

And the parts about Style Runs.

You'll basically have to omit/send to script after omit, and use NoteStyle and ColourNote to reprint the line as you'd like it to appear.
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.


12,378 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.