Multiple IClassificationTags & highlighting

SyntaxEditor for WPF Forum

Posted 12 years ago by Erik Ashepa
Version: 11.2.0552


I'm currently evaluating your great SyntaxEditor!

I have two custom taggers with matching tags.

each tag registers it's own highlighting style (red & yellow background).

in situations where both tags are applied to the same range, how do i set the overriding style? (i want the background to be yellow)


Thanks in advance,

Comments (2)

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

Hi Erik,

Thanks for evaluating SyntaxEditor.  Each tagger implements the IOrderable interface.  So you have the ability to set the relative order that tags should appear.  The TaggerBase class (and CollectionTagger) each have a constructor parameter that is an IEnumerable<Ordering>.  So for that you can specify that your one tagger comes before the other.  And for the second tagger, specify the opposite.

Actipro Software Support

Posted 12 years ago by Erik Ashepa

Thanks you very much!

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.