Multiple IClassificationTags & highlighting

SyntaxEditor for WPF Forum

Posted 8 years ago by Erik Ashepa
Version: 11.2.0552
Avatar

Hi, 

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,
Erik. 

Comments (2)

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

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 8 years ago by Erik Ashepa
Avatar

Thanks you very much!

The latest build of this product (v2019.1 build 0683) 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.