Highlight text on Editor

View: New views
3 Messages — Rating Filter:   Alert me  

Highlight text on Editor

by David Villalobos Cambronero :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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?

Benoit, how do you highlight the Gambas keywords?

Regards

David.



     

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Gambas-user mailing list
Gambas-user@...
https://lists.sourceforge.net/lists/listinfo/gambas-user

Re: Highlight text on Editor

by Bugzilla from gambas@users.sourceforge.net :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Gambas-user mailing list
Gambas-user@...
https://lists.sourceforge.net/lists/listinfo/gambas-user

Parent Message unknown Re: Highlight text on Editor

by David Villalobos Cambronero :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Jejeje, It will be hard.

Bu I think I got an idea.... let's hope it works... :-)

Anyway, thanks

David

----- Original Message ----
From: Benoit Minisini <gambas@...>
To: mailing list for gambas users <gambas-user@...>
Sent: Wednesday, May 14, 2008 1:48:09 PM
Subject: Re: [Gambas-user] Highlight text on Editor

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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Gambas-user mailing list
Gambas-user@...
https://lists.sourceforge.net/lists/listinfo/gambas-user



     

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Gambas-user mailing list
Gambas-user@...
https://lists.sourceforge.net/lists/listinfo/gambas-user