Clickable HyperLinks

SyntaxEditor for WPF Forum

Posted 10 years ago by Jan Bannister
Version: 9.1.0505
Avatar
Hey Folks,

This seems pretty simple but what is the easiest way to make hyper-links appear underlined and make them clickable?

Cheers,
Jan

Comments (1)

Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Jan,

You could probably have a classification type for hyperlinks with an associated style that did underlines. When your lexer finds a hyperlink token, give it that classification type. Then have your language install an IEditorViewMouseInputEventSink service. In that you can watch for mouse downs over hyperlink tokens and if Ctrl is pressed, consider it a click on a hyperlink.


Actipro Software Support

The latest build of this product (v2019.1 build 0683) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.