Search code examples
c#syntax-highlightingavalonedit

AvalonEdit: how to remove hyperlink underline?


I do not want to disable hyperlinks completely (via Options.EnableHyperlinks) because I want to be able to open links via CTRL + Click but I need to remove underline. How can I do that?

So far I found only LinkTextForegroundBrush and LinkTextBackgroundBrush in TextArea.TextView.


Solution

  • I ended up modifying AvalonEdit source code a bit to add such option and created a fork/pull request on GitHub. Looks like it was merged into the main repository. https://github.com/icsharpcode/AvalonEdit/pull/10/commits