It occured to me 10 seconds ago, that there wasn't any simple way to include hyperlinks inside of <code> blocks.
In particular I was trying to make a line that said "use LWP::Simple;" look like: "use LWP::Simple", but instead i got: "use [cpan://LWP::Simpl]"
Then it occured to me, that it would seriously ROCK! if code blocks automaticly hyperlinked all "use" lines to the corrisponding "cpan://" url, or if built in functions got hyperlinked to their "perldoc -f" descriptions ... maybe even operators could be linked to their descriptions from perlop.
Obviously, some code could get hard to read and cluttered if this happened automaticly ... but what if it was implimented as optional attributes for the <code> tag -- soo you could specify what exactly you wanted hyperlinked (to feature the particular pieces of code you think the reader should read up on)? Something like these maybe...
Not sure how feasible this all is ... i'm kind of reaching with that "urls" attribute idea, but i thought i'd throw it out there.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: auto-hyperlinking code?
by elusion (Curate) on Feb 16, 2003 at 13:44 UTC | |
|
(jeffa) Re: auto-hyperlinking code?
by jeffa (Bishop) on Feb 16, 2003 at 16:02 UTC | |
|
Re: auto-hyperlinking code?
by Zero_Flop (Pilgrim) on Feb 17, 2003 at 06:48 UTC | |
|
Re: auto-hyperlinking code?
by Aristotle (Chancellor) on Feb 18, 2003 at 20:36 UTC |