Posted 18 years ago by John Youren
Avatar
Hello again,

I am using the syntax editor to highlight a language which uses multiple word commands e.g.

Make Object Box
Make Object Cube
Make Object Sphere

what is the best and fastest way of highlighting multiple word commands?

Thanks

Comments (3)

Posted 18 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi John,

You can use a regex pattern to do it... something like this:
<RegexPatternGroup TokenKey="YourToken" PatternValue="Make \s+ Object \s+ Box" CaseSensitivity="Insensitive" />


Actipro Software Support

Posted 18 years ago by John Youren
Avatar
Ok,

Thanks, now if I do that for 300+ commands is it going to slow my program down.
Posted 18 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
We've tried to do optimizations to support many patterns fast. I think you will be fine because of our optimizations but it's hard to tell without actually implementing that many patterns.


Actipro Software Support

The latest build of this product (v24.1.0) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.