TextPad already has handy recognition built in for the following kinds of links (with a rightclick on the link):
<!-- #include file="../includes/forms.asp" -->
http://www.textpad.com
But I would like to have control (per document-class) over what constitutes a hyperlink, so that I can define some of my own. I would also like to be able to associate each type of link with a tool which will process the recognised hyperlink.
Suggestion:
The syntax file could have new [Syntax] elements for hyperlinks, perhaps defining them with a regular expression. This would allow not only html-tag style hyperlinks, but also cater for links like "http://????" itself. The syntax file could also then associate the link with a tool, which could receive the link as a tagged expression. eg..
Hyperlink1=\(http://[^ \t\n]\)
HyperlinkAction1=Explorer
-- eg: \1 = http://www.textpad.com
Hyperlink2=<!-- #include file="\([^"])\" -->
HyperlinkAction2=FileGoTo
-- eg: \1 = ../includes/forms.asp
User-defined Hyperlinks
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard