StructureMatcher does not support code block Highlight

SyntaxEditor for WPF Forum

Posted 6 years ago by Roger
Version: 17.2.0664

We would like to Highlight code block.





Bold words want to Highlight when user click IF or End.

StructureMatcher only support char and it does not support Word(eg.IF).

How to implement string(Keyword) base StructureMatcher?

Comments (1)

Posted 6 years ago by Actipro Software Support - Cleveland, OH, USA

Hi Roger,

Our built-in StructureMatcher class is geared for basic bracket delimiters only.  But you can implement your own custom IStructureMatcher to support IF...End. 

Please check out the "SyntaxEditor / Text/Parsing Framework / Advanced Text Features / Structure Matching" topic in the documentation that comes with the product.  That describes how structure matchers work.  You effectively only need to implement one method and that topic gives some tips.

Actipro Software Support

The latest build of this product (v24.1.2) 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.