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
➜ Highlighting Text
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Mephator
Canada (5 posts) Bio
|
| Date
| Fri 30 Dec 2005 07:34 AM (UTC) |
| Message
| 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. | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Fri 30 Dec 2005 09:56 PM (UTC) |
| Message
|
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):
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:
|
- 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.
12,060 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top