Acting on text entered

SyntaxEditor for Windows Forms Forum

Posted 13 years ago by Ryan
Version: 4.0.0288
Avatar
I would like to act on a string pattern form with in the language xml file.

For example:
if this is in the XML file I would like to know when the editor sees "fe" in the document.

<ExplicitPatterns>
    de pr fe
</ExplicitPatterns>
Please let me know if I did not explain well enough.

Comments (3)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Ryan,

There isn't anything to let you know when a certain token type is lexed. However you can scan through the document at any time with a TextStream (via the document.GetTextStream() method) and that will tell you tokens as you enumerate over them.

[Modified at 02/15/2011 08:23 AM]


Actipro Software Support

Posted 13 years ago by Ryan
Avatar
I do not see that method in the help or in the example file. Can you explain the usage or provide and example?
Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Sorry, it should have said GetTextStream(). It's fixed now.


Actipro Software Support

The latest build of this product (v23.1.2) was released 11 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.