Assigning 'values' to tokens

SyntaxEditor for Windows Forms Forum

Posted 13 years ago by John Youren
Avatar
Hi, Say I have a syntax file full of entries like so

<RegexPatternGroup TokenKey="ReservedWordToken" PatternValue="MAKE\s+OBJECT\s+BOX" CaseSensitivity="Insensitive" Style="ReservedWordStyle"/>

is there a way of including a value which I can query at runtime as I go through the tokens. I am looking to set the status bar text of my app to the command arguments of a command which in this case would be

Make object box *object number*, *size*

I imagine the syntax file entry would change to

<RegexPatternGroup TokenKey="ReservedWordToken" PatternValue="MAKE\s+OBJECT\s+BOX" CaseSensitivity="Insensitive" Style="ReservedWordStyle" HelpText="Make object box *object number*, *size*"/>

Is this possible?

Thanks

Comments (1)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
We don't have anything exactly like that yet however we do have string properties. You could probably make a string property named "ReservedWordToken_HelpText" and then query that at run-time. It achieves the same effect.


Actipro Software Support

The latest build of this product (v2018.1 build 0341) was released 6 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.