[Gambas-user] Highlight text on Editor

Benoit Minisini gambas at ...1...
Wed May 14 21:48:09 CEST 2008


On mercredi 14 mai 2008, David Villalobos Cambronero wrote:
> Hi all,
>
> Does someone knows how to highlight a word on the editor?
>
> For example, highlight HTML tags is "easy" since all of them start and end
> with < or >, but how can I highlight a word like, INSERT, KEY, TABLE, etc?
>
> Any idea?

A lot of elbow grease inside the Highlight event.

>
> Benoit, how do you highlight the Gambas keywords?

Gambas highlighting is hard-coded into the gb.qt.ext and the gb.eval 
component. It is not done in Gambas.

Regards,

-- 
Benoit Minisini




More information about the User mailing list