Skip to content
Discussion options

You must be logged in to vote

changing this via the xshd file, but I'm not sure this is possible

That's not possible, unfortunately. The hyperlink generator uses a different mechanism than highlighting.

how to change this programmatically

You can set the default color like this, by having a default style for TextView in scope:

<Style TargetType="{x:Type avalonedit:TextView}">
    <Setter Property="LinkTextForegroundBrush" Value="#99DAF9" />
</Style>

Or by changing that property from C#:

yourTextEditor.TextArea.TextView.LinkTextForegroundBrush = Brushes.LightBlue;

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@stigzler
Comment options

Answer selected by stigzler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants