I watch source code of TextDocument, it provides many methods like SetText and AppendText. It looks like only accept pure text.
I want some decoration and operation when I select a word or a sentence.
For example, here is a url: www.abc.com, I would like to it has underline, font weight is bold, when i hold left Ctrl and click, it will open a browser and redirect to the page. Also I would like the url holding other important infomation that I will use when I do something else.
How do I achieve that? Or can I use Run or TextBlock instead of pure text in SyntaxEditor?
Kinds regards,
Joey Lu
[Modified 2 months ago]