in reply to Re: (jeffa) Re: Enhancement: "hidden" code tag
in thread Enhancement: "hidden" code tag

Is there some reason why you couldn't do this using the already existing <readmore>?
#!/usr/bin/perl -w use strict; ... several other 'use' statements.
# I think the fake code problem is here: some_sub('blah blah blah'); sub some_sub { do_something(); &nbsl;do_something_else(); }
sub supporting_sub1 { ... code ... } sub supporting_sub2 { ... code ... }

    --k.


Replies are listed 'Best First'.
Re: Re: Re: Re: Enhancement: "hidden" code tag
by hossman (Prior) on Mar 12, 2003 at 01:21 UTC

    The distinction is that stuff you "hide" in a readmore will show up if anyone looks at your node directly, where as the poster is suggesting a new tag which would never show up when viewing the node (either in a list, or directly) and would only be included as part of the "d/l code" content.

    The advantage of readmore tag is being able to shorten the node if you just want an overview.

    The advantage of a "hidden_code" tag would be that you could allways make "d/l code" provide a complete program, with all neccessary use statements and helper functions, but reading the node would only include the specific code you have a question about.