dwmkerr / consolecontrol

ConsoleControl is a C# class library that lets you embed a console in a WinForms or WPF application.
MIT License
726 stars 170 forks source link

Add support for links #12

Closed israelss closed 9 years ago

israelss commented 9 years ago

I have just added some action on the linkClicked event of the richTextBoxConsole, so when there are any links in the output console, they are not just recognized, but also clickable.

dwmkerr commented 9 years ago

Hi @israelss this looks good but there is one problem, if the link text is not a valid URI then this won't work. So if someone decides they want to customise the behaviour of their links by having links like this they won't be able to do so. I'll have a think about this, it might be better at this stage just to update the documentation with some info on how to solve common tasks like this

israelss commented 9 years ago

Ok, thanks! I'll play with this to see if I can adapt it to work with automatic recognition of any user provided link mark format, for example "text" or "text#url:link"