in reply to Re: Re: Auto linking to words in a text file
in thread Auto linking to words in a text file
I'm still not getting it, I'm afraid. Would this be defined at the top of a file, as in "here's a list of words and their associated links" or *within* the file, as in only certain occurrences of the words will get linked, and that link is determined by what follows the 'pipe' symbol.
Example #1
cult|http://www.slashdot.org banana|/orange.html Being in a cult can reduce your ability to eat a banana, doctors claim +.
Example #2
Being in a cult|http://www.slashdot.org can reduce your ability to eat + bananas|/orange.html , doctors claim.
if the latter, it's so close to HTML already it's almost not worth the work of writing a script. But whatever. If the former, what you could to do is read the word/url pairs into a hash, and do something like what I suggested above. Philosophy can be made out of anything. Or less -- Jerry A. Fodor
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Auto linking to words in a text file
by belize (Deacon) on Dec 01, 2000 at 22:35 UTC | |
by arturo (Vicar) on Dec 01, 2000 at 22:49 UTC | |
by turnstep (Parson) on Dec 02, 2000 at 05:23 UTC | |
by belize (Deacon) on Dec 02, 2000 at 00:17 UTC |