User-defined Hyperlinks

Ideas for new features

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply

What do you think?

Definitely yes!
1
8%
Well it's really nice
5
38%
I don't care
4
31%
If you must
3
23%
No sensible human being would want that
0
No votes
 
Total votes: 13

User avatar
trids
Posts: 69
Joined: Wed May 07, 2003 10:16 am
Location: South Africa

User-defined Hyperlinks

Post 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
altan
Posts: 21
Joined: Mon Sep 15, 2003 12:50 am

Post by altan »

This is currently beyond my needs, but it sounds very cool 8)
Post Reply