Syntax Highlighting the same word in different colors??

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
coreyh95
Posts: 2
Joined: Fri Jan 23, 2004 4:14 am

Syntax Highlighting the same word in different colors??

Post by coreyh95 »

I am looking for a way to highlight keywords that start a sentence a different color than keywords that are contained in a sentence.

Example.
from tablename;
I would like the keyword FROM (located in Keywords 1) in blue

but...
trim(trim_character from trim_source);
I would like the keyword FROM (located in Keywords 2) in red.

Is there a way to differentiate a keyword that begins a statement versus a keyword that is IN a statement?

Any help would be greatly appreciated,
Thank You,
Corey
User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post by Bob Hansen »

Any help would be greatly appreciated
:idea: If you really mean any, how about using a foreign language?

Change half of them "from" to "de", "da", "von". :twisted:

I think that will be the only way :(
coreyh95
Posts: 2
Joined: Fri Jan 23, 2004 4:14 am

Post by coreyh95 »

:D lol! Thanks for the offer.

I suppose I will continue to use case sensitive matching for now.

I've seen [Keywords #] can contain...
G0-99 to selcet a range of numbers,
are there any other special undocumented tricks when providing keywords?

Thanks,
Corey
Post Reply