Change foreground of PlainTextContentProvider

SyntaxEditor for WPF Forum

Posted 2 years ago by Josh
Version: 17.2.0
Avatar

Hello,

I'm trying to change the foreground of the content of the PlainTextContentProvider that is used by the default ParseErrorTagger.   Any suggestions?

Comments (1)

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

Hi Josh,

Quick info popups like the one used to display the text of parse errors on mouse hover will make the popup use the same border, background, and default plain text foreground as the SyntaxEditor.  This is done so that syntax highlighting within quick info popups will be the same as in the editor for readability purposes.

If you'd like the foreground to be different, you could use the HtmlContentProvider instead. 

Or alternatively, you could make a class that inherits PlainTextContentProvider and overrides its GetContent method to examine the TextBlock that is created by the base method, and set its Foreground property.


Actipro Software Support

The latest build of this product (v24.1.1) 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.