Code Fragment tokens

SyntaxEditor for WPF Forum

Posted 10 years ago by Aernout van Groen
Version: 14.1.0602


I am trying out the Code Fragment Editing feature.
Looking at the example (SampleApplication - SyntaxEditorSample - QuickStarts - Code Fragments) it seems as if the TokenTagger ignores the header and footer.
Is it true that these do not affect the Tokens and Classifications of the fragment?


Comments (1)

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

Hi Aernout,

If you have a parser, it will operate on a merged virtual snapshot that combines header/body/footer.  It uses another copy of a lexer to do so.  I believe that ends up using a TokenTagger as well.

But for all other portions of SyntaxEditor, a TokenTagger will only operate over the main document body since that's all that the view needs to care about.

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.