Search found 92 matches

by Gub
22 Aug 2013 08:36
Forum: Web Client Bugs and Feature Requests
Topic: Text Coloring
Replies: 23
Views: 7741

Re: Text Coloring

I'm not picturing it. What would it look like?

In my ideal world I would be making calls such as:

Code: Select all

var pattern = new RegExp("(peculiar|unusual|exotic)", "i");
gwc.output.replace(pattern, "<span style=\"color:green\">$1</span>");
I think any wrapper around the jquery calls I made would be good.
by Gub
22 Aug 2013 00:55
Forum: Web Client Bugs and Feature Requests
Topic: Text Coloring
Replies: 23
Views: 7741

Re: Text Coloring

var src_str=$("#mudoutput .line").last().html(); var pattern = new RegExp("(peculiar|unusual|exotic)", "i"); src_str = src_str.replace(pattern, "<span style=\"color:green\">$1</span>"); $("#mudoutput .line").last().html(src_str); This gives you a little more control over the color. Note in this cod...
by Gub
22 Aug 2013 00:32
Forum: Web Client Bugs and Feature Requests
Topic: Text Coloring
Replies: 23
Views: 7741

Re: Text Coloring

For your trigger check the regular expression box, and put in (peculiar|exotic|unusual) in the box (that triggers on peculiar OR exotic OR unusual) var src_str=$("#mudoutput .line").last().html(); var pattern = new RegExp("(peculiar|unusual|exotic)", "i"); src_str = src_str.replace(pattern, "<mark>$...
by Gub
21 Aug 2013 19:20
Forum: Web Client Bugs and Feature Requests
Topic: Text Coloring
Replies: 23
Views: 7741

Re: Text Coloring

var src_str=$("#mudoutput .line").last().html(); var term = "unusual"; term = term.replace(/(\s+)/,"(<[^>]+>)*$1(<[^>]+>)*"); var pattern = new RegExp("("+term+")", "i"); src_str = src_str.replace(pattern, "<mark>$1</mark>"); src_str = src_str.replace(/(<mark>[^<>]*)((<[^>]+>)+)([^<>]*<\/mark>)/,"$...
by Gub
21 Aug 2013 00:55
Forum: Web Client Bugs and Feature Requests
Topic: Text Coloring
Replies: 23
Views: 7741

Re: Text Coloring

Can you expose some more of the internal API so we can write our own libraries that could be included into the system? Rather than requesting the method call you just suggested, I feel like users should be able to write them and then have them included (after review) into a standard library. Or can ...
by Gub
21 Aug 2013 00:49
Forum: Web Client Bugs and Feature Requests
Topic: Text Coloring
Replies: 23
Views: 7741

Re: Text Coloring

Hah, I agree, it looks horrible.

Yeah, thats it exactly.
by Gub
20 Aug 2013 22:55
Forum: Web Client Bugs and Feature Requests
Topic: Text Coloring
Replies: 23
Views: 7741

Re: Text Coloring

Sure. If I want to highlight the word "peculiar" or "unusual" rather than highlighting the entire line. I'd like it to look something like this:

You get an unusual black robe
rather than:
You get an unusual black robe.
by Gub
20 Aug 2013 22:43
Forum: Web Client General Discussion
Topic: New Official Client Unveiled for Testing!
Replies: 32
Views: 9031

Re: New Official Client Unveiled for Testing!

Amazing job guys, seriously, bravo!

Love that triggers can be written in javascript.

Can we import/export triggers?

This seems like the sort of project that could be put on GitHub and open-sourced to the community. Any chance that will happen?
by Gub
20 Aug 2013 22:40
Forum: Web Client Bugs and Feature Requests
Topic: Text Coloring
Replies: 23
Views: 7741

Text Coloring

Ability to change the color of a word rather than the whole line.