[Gambas-user] Editor.Lines[0].Refresh() does not trigger custom Highlight event

Benoît Minisini gambas at ...1...
Sun Mar 31 10:06:09 CEST 2013


Le 10/03/2013 14:13, Tobias Boege a écrit :

>> I don't understand what you want to do exactly with Editor. Could you
>> explain with more details?
>>
>
> Of course. I wasn't clear at all. The goal is to enter a regular expression
> and then highlight all matching strings in a text (like Editor.ShowString()
> does for fixed strings).
>
> One may also replace all matches by another string (currently not containing
> submatches of the original expression because it was just a POC for an
> article about gb.pcre). I'd just leave this task to an invocation of 'sed'.
>
> BTW, I finished the thing yesterday and the attached code may show better
> what I was trying to explain.
>
> Regards,
> Tobi
>

To force lines to be highlighted, you can use the HighlightAll() method.

-- 
Benoît Minisini




More information about the User mailing list