StructureMatcher does not support code block Highlight

SyntaxEditor for WPF Forum

Posted 6 years ago by Roger
Version: 17.2.0664
Avatar

We would like to Highlight code block.

eg.

IF

codes

End

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
Avatar

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.1) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.