Hi there again,

I'm trying to figure out how to write a zimlet that does matchOn a regex both in mail and in the phonebook. Unfortunately, I've just been able to make it work, but it's now missing the highlighting functionality.

I mean, right now to make my contextmenus work in both areas (mail and phonebook) I had to specify
Code:
<contentObject type="phone">
 [...]
</contentObject>

<contentObject>
 [...]
</contentObject>
But this breaks the highlighting functionality. That is, you don't see it blue-colored and underlined!

If you separately specify (and removing the other section):
Code:
<contentObject type="phone">
 [...]
</contentObject>
or
Code:
<contentObject type="email">
 [...]
</contentObject>
you get a perfectly working zimlet either on the phonebook or the email section only!

By doing the following, it won't work anymore, or it works badly, or... (didn't keep track of each behavior, frankly....):
Code:
<contentObject type="phone">
 [...]
</contentObject>

<contentObject type="email">
 [...]
</contentObject>
or just many other combos, like removing the types, or inventing a new one (such as wikipedia did -by the way, thought that you are supposed to use a built-in one...), or specifying a type in the second etc etc.

Useless to say, documentation doesn't say much about this...

And I couldn't find any zimlet that worked the same way I'm looking for...!


In other words, I tried almost everything! (ok, took me about 10 minutes, but victim-mode enhances my chances of being considered... ;-)

...