Clickable HyperLinks

SyntaxEditor for WPF Forum

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

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


Comments (1)

Posted 15 years ago by Actipro Software Support - Cleveland, OH, USA
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.2) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.