HighlightingStyle with border similar to the selection style

SyntaxEditor for WPF Forum

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


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.



Comments (1)

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

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 (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.