Re: Titles on external links

"David W. Talmage" <[email protected]> Sat, 8 Apr 2006 15:33:46 -0400
Newsgroups gmane.comp.web.wiki.awkiawki.user
Message-ID <[email protected]>
On Saturday 08 April 2006 2:16 pm, Stephen Patterson wrote:
> Is there a way to have it display titles rather than urls for external
> links? I've looked through the source an though I can find the line which
> formats external links I don't understand awk well enough to modify that in
> a useful manner (I'm more of a perl hacker).

You found this in parser.awk:

sub(/((https?|ftp|gopher):\/\/|(mailto|news):)[^\t]*[^.,?;:'")\t]/, "<a 
href=\"&\">&</a>",field)

That line changes text like 

http://blah.blah.blah 

into 

<a href="http://blah.blah.blah">http://blah.blah.blah</a>

Is there a standard Wiki markup for naming the title of an external link?

David Talmage




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642