Page 1 of 1

User-defined Hyperlinks

Posted: Wed May 14, 2003 10:15 am
by trids
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.

:idea: 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

Posted: Wed Sep 17, 2003 3:57 pm
by altan
This is currently beyond my needs, but it sounds very cool 8)