Page 1 of 1

Syntax Highlighting - Allow wildcards to define keywords

Posted: Thu Jun 05, 2003 4:15 pm
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_*'.

Posted: Thu Jun 05, 2003 4:21 pm
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.

Posted: Tue Jun 10, 2003 10:01 pm
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.

Posted: Wed Jun 11, 2003 3:20 pm
by trids
You can vote for syntax highlighting with Regular Expressions at
Syntax Files - Dynamic Keywords