Clickable HyperLinks

SyntaxEditor for WPF Forum

Posted 14 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 14 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 (v24.1.1) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.