Highlighting Text

Posted by Mephator on Fri 30 Dec 2005 07:34 AM — 2 posts, 12,601 views.

Canada #0
Got a few questions here that I couldn't seem to find an answer for.

Based on your FAQ, I was able to highlight specific words. The highlight is applied, however, after the text comes through; there is a small delay/flicker. Is there any way to highlight words as they are received by the client but before they're displayed?

Also, how would you go about highlighting an entire line based on a one word match? ie. I'm looking for the word 'pony', and the line 'Tim rides his pony into the sunset' should be completed highlighted, not just the word.
Australia Forum Administrator #1
Quote:

... there is a small delay/flicker ...


This topic has been covered many times in the past. Basically it is a fundamental design aspect of MUSHclient that triggers fire when a newline is received (ie. at end of line).

However, to allow for prompts, like:


Enter your character's name, or type new:


It displays text as soon as it arrives. Thus, there may be a slight flicker as text is retrospectively coloured, or omitted. Personally I don't notice it much these days on reasonably fast PCs.

Quote:

... how would you go about highlighting an entire line based on a one word match?


This one is easy. The highlighting applies to whatever the match text is, so for your example you can do this (as a regular expression):


Match: ^.*pony.*$


In this case the "matched text" is the entire line, any line that has "pony" in it.

Or, you can do that without using regular expressions, by matching on:


Match: *pony*