HighlightingStyle with border similar to the selection style

SyntaxEditor for WPF Forum

Posted 6 years ago by Dave Haas - Powder Software
Version: 13.1.0582
Avatar

Hi.

I'd like to implement a highlighting style similar to the default selection style. In that style, if the selection spans multiple lines the border is drawn around the outer edge, not on every line.

When I try to add a border to my HighlightingStyle with:

deletedStyle.BorderBrush = new SolidColorBrush(Color.FromRgb(255, 148, 148));

deletedStyle.BorderStyle = HighlightingStyleLineStyle.Solid;

I get a border around every line, not just the outer edge.

Cheers,

Dave

Comments (1)

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

Hi Dave,

Sorry but the default classification taggers wonder render with merged borders.  You'd need to make a custom adornment that spans multiple lines to get it looking like the selection does.  That's effectively what we do for the selection adornment.


Actipro Software Support

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.