icechat / IceChat

IceChat IRC Client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

highlite plugin improvement

Ryder17z opened this issue · comments

[ ] Highlight only whole word matches
[ ] Highlight only exact matches

{highlight start}user1234{highlight end} string123 something
{highlight start}user{highlight end}1234 string123 something

The first one would be a major improvement

commented

The highlighter can use REGEX to do matches, so this is already implemented.

I see. Only problem is to generate that. RegEx has always been a pain to
work with.

On Thu, Sep 1, 2016, 18:22 icechat notifications@github.com wrote:

The highlighter can use REGEX to do matches, so this is already
implemented.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#15 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AB6HP61wEl7cFlqu942X7UXl2C-31uYxks5qlvu7gaJpZM4Jt5WA
.

commented

It seems the Regex isn't really perfect either, as to how it is currently being used, so I will probably have a checkbox to match with Regex.
As for how to use it, a Wiki page can be made to help with some basics.

commented

To use whole word matches, wrap the word in \b .. Example.
\buser1234\b
An exact match would be a word match as per above. This works in the current version of the highlighter.

Aha, okay.

On Mon, Sep 5, 2016, 22:18 icechat notifications@github.com wrote:

To use whole word matches, wrap the word in \b .. Example.
\buser1234\b
An exact match would be a word match as per above. This works in the
current version of the highlighter.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#15 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AB6HP8XDvRu1dGxdBOOZJwYjLUPH2j7aks5qnHkMgaJpZM4Jt5WA
.