Highlights and word wrap

Posted by Jim on Thu 12 Apr 2001 06:12 PM — 2 posts, 13,555 views.

#0
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
Australia Forum Administrator #1
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")