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
➜ URL Triggers?
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Cuprohastes
(14 posts) Bio
|
| Date
| Thu 24 Jul 2003 06:58 PM (UTC) |
| Message
| Short:
How do I get a regexp to highlight everything after a string, and stop highlighting on a space?
Long:
I'd like to be able to set a trigger up to fire when it sees "http" or "WWW" and highlight everything until it hits a space " "...
So in:
"This is OK of course, but really I'd like a colour version of www.bob.co.uk/gallery/my_favourite%20pic.jpg like this one http://www.fraggo.com/gallery.php??gibbergibber=1&7:stupidphpstuff <<cool huh?
It'd highlight
www.bob.co.uk/gallery/my_favourite%20pic.jpg
and
http://www.fraggo.com/gallery.php??gibbergibber=1&7:stupidphpstuff | | Top |
|
| Posted by
| Cuprohastes
(14 posts) Bio
|
| Date
| Reply #1 on Thu 24 Jul 2003 08:14 PM (UTC) |
| Message
| Never mind. I got it working:
(http|www).*[ ] | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #2 on Fri 25 Jul 2003 02:44 AM (UTC) |
| Message
| I've released my URL highlighter (from a post a while back) as a plugin. You may need to amend the trigger slightly to match what you had above to make it match more general URLs.
The relevant post is at:
http://www.gammon.com.au/forum/?bbsubject_id=3018
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Cuprohastes
(14 posts) Bio
|
| Date
| Reply #3 on Sun 27 Jul 2003 01:17 AM (UTC) |
| Message
| | Thanks. I'm starting to really get into Mushclient - well worth the money I spent. Now I have to dig out my old Madskillz and see if I can implement my own plugins... | | 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.
17,498 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top