I had an idea that PMDevils might consider. My idea came when reading clipcommand.pl (Embed perl into your clipboard). In that post, antirice has 7 <code> blocks; one of them the "big one". I love the download tag (thanks to whomever coded that a long time ago), but each time I click one in this post, they're always defaulted to save as 648493.pl. It's no big deal to rename it, but my idea was that the author might be given the power to change the default save file name as an attribute to the code tag.
Thus, when antirice puts his little macros in code tags he could just enclose them in <code></code>; the default {nodeid}.pl would still hold. When he puts the big script in it might read <code savename="clipcommand.pl"></code>.
This might help out in other places where someone has put a sample data file in code tags (instead of after __DATA__) and then referred to a file name in their script enclosed in separate code tags. The file name could be in the savename attribute on the data file's opening code tag.
This is really just a brainstorm - I'm not complaining nor do I feel terribly inconvenienced as is. If PMDevils has plenty to do, then I'd rate this as a low priority snazzy feature instead of a "make the masses happy" feature.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Feature idea for code tags
by roboticus (Chancellor) on Nov 30, 2007 at 20:58 UTC | |
|
Re: Feature idea for code tags
by moritz (Cardinal) on Dec 02, 2007 at 13:39 UTC | |
by goibhniu (Hermit) on Dec 02, 2007 at 20:08 UTC | |
|
Re: Feature idea for code tags
by Erez (Priest) on Dec 02, 2007 at 07:55 UTC | |
|
Re: Feature idea for code tags
by blazar (Canon) on Dec 02, 2007 at 13:30 UTC | |
|
Re: Feature idea for code tags
by jasonk (Parson) on Dec 01, 2007 at 16:04 UTC | |
by shmem (Chancellor) on Dec 01, 2007 at 16:16 UTC | |
by aufflick (Deacon) on Dec 04, 2007 at 03:03 UTC |