Page 1 of 1

'start with @ to define a variable' ?

Posted: 29 May 2010 18:04
by NTB
Just curious about this: In the syntax editor, when I go to add a new keyword group, the dialogue box that comes up says
Enter a name. Start with a @ to define a variable, E.g. @var.
What is it for? does the '@' symbol tell the editor to do something special? I've looked through the help documentation, but I didn't see anything on this...wouldn't surprise me if I missed something, though :P

Nathan

Posted: 30 May 2010 16:12
by Rickard Johansson
Variables should be used with auto completion only. I'll change the dialog text when adding keywords.

Auto completion lists are often repeated between tags or classes. Variables are then used to simplify the process of adding auto completion data in the syntax files.

I'll add some information in the help. Thanks!

Posted: 30 May 2010 22:50
by NTB
Do any of the standard syntax definitions use this? Just wondering - I'd like to see an example of how to set this up.

Nathan

Posted: 31 May 2010 11:46
by Rickard Johansson
No. The feature was added after most syntax files were already created.

I would like to re-write the HTML syntax file using variables one day...