Syntax Highlighting - Allow wildcards to define keywords

Ideas for new features

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply

How important is this feature for future versions of TextPad?

Important, even if the size/efficiency of TextPad increases/degrades
3
19%
Important, even if the size/efficiency of TextPad increases/degrades
0
No votes
Somewhat important
10
63%
Somewhat important
0
No votes
I'm okay either way
2
13%
I'm okay either way
0
No votes
Somewhat unimportant
1
6%
Somewhat unimportant
0
No votes
Unimportant, even if the size/efficiency of TextPad remains unaffected
0
No votes
Unimportant, even if the size/efficiency of TextPad remains unaffected
0
No votes
 
Total votes: 16

CJ
Posts: 17
Joined: Thu Apr 24, 2003 10:37 pm
Location: Vancouver, BC, Canada

Syntax Highlighting - Allow wildcards to define keywords

Post by CJ »

In my scripts I would like to be able to colour variables a certain colour. I prefix my variable names with things like 'd_', 'i_', 'n_'. I think it would be great if I could colour my variable a different colour than other text.

So I would like to define variable names as keywords but using wildcards instead of the full variable name: 'd_*', 'i_*', 'n_*'.
CJ
Posts: 17
Joined: Thu Apr 24, 2003 10:37 pm
Location: Vancouver, BC, Canada

Post by CJ »

I'm really sorry guys about the double poll.
I went to edit my post and it hadn't included the poll.
So, when I added it for the second time this is what I got.

:(

Feeling pretty stupid.
da chicken
Posts: 1
Joined: Tue Jun 10, 2003 9:55 pm
Location: US

Post by da chicken »

Actually, I'm of the opinion that Syntax Definitions should be written with regular expressions, not wildcards.

And actually, I think the developers of TextPad should looks at jedit and see how they've done syntax highlighting. jEdit is simply amazing at it in 1.4.2pre2.

I'd also argue that if you allow regular expressions to define syntax files, then you might want to include a fron-end for creating new syntax files.
Brandon Aiken (a.k.a. da chicken)

Those who will not reason are bigots; those who cannot are fools; and those who dare not are slaves. - Lord Byron
User avatar
trids
Posts: 69
Joined: Wed May 07, 2003 10:16 am
Location: South Africa

Post by trids »

You can vote for syntax highlighting with Regular Expressions at
Syntax Files - Dynamic Keywords
Post Reply