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 ➜ Highlights and word wrap

Highlights and word wrap

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


Posted by Jim   (1 post)  Bio
Date Thu 12 Apr 2001 06:12 PM (UTC)
Message
So far I absolutely love MUSHclient! My question is about word wrapping and highlight strings.

No matter what I have tried, all text coming from the game wraps at one point (I think it's 80 characters). This means that some of my triggers (that would highlight long strings that would normally be one line) to highlight improperly. That is, since a wordwrap is forced, only the first "line" of the string is highlighted. Is there any way to fix the wordwrap forcing on text coming from the server?

Also, is there any way to match certain text after a trigger in a long string? (i.e., Room description is "blah blah blah blah blah blah blah. You also see blah blah blah." Is there any way to just highlight everything after "You also see"?)

Thanks!

- Jim
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #1 on Fri 13 Apr 2001 12:25 AM (UTC)
Message
The line wrap point is configurable, see Configuration -> Output.

Triggers should highlight more than one line. What version are you using? Version 3 onwards should handle that correctly.

However it depends on the server type. Some servers send a carriage-return at the end of each line (eg. SMAUG) and thus each line is treated separately. Other servers (eg. PennMUSH) send multiple lines as a paragraph, and thus multiple-line trigger matching should work.

As for highlighting text after "You see ..." - I'm not sure about that. Triggers usually highlight what they match (eg. "You see") not what they don't match (eg. "blah blah blah")

- 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.


13,015 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.