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

Posted by Ulenspiegel on Tue 27 Jun 2017 01:02 PM — 2 posts, 15,979 views.

#0
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.)
USA #1
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.