in reply to suggestion : change to code tag

Further to the <CODE> tag discussions, my $2e-2 is that there be an INDENT parameter, which would shuffle the code in, only during HTML display. A default of 5 characters would be assumed, unless a specific number was specified, such as INDENT=8. This gives you code like:      my $donut = 'round'; Instead of: my $donut = 'round'; The downloaded code would stay unindented. I find that indenting often improves readability for short blocks, and most books (i.e. Programming Perl) use this same technique.

Of course, vroom probably has 9e6 other things to do first.

Replies are listed 'Best First'.
Re: Re: suggestion : change to code tag
by chipmunk (Parson) on May 23, 2001 at 23:26 UTC
    You can get this effect by putting a BLOCKQUOTE tag around your CODE tag. The code will indented in the HTML display, but not in the d/l code display.
Re: Re: suggestion : change to code tag
by HamNRye (Monk) on May 25, 2001 at 03:18 UTC

    I'm assuming that code is just a style declaration?? If not, why not?

    div.code
    {
         text-indent: 10px;
         font: fixed;
         bgcolor: Floral White;
    }
    

    Or Even....

    div.code
    {
         normal style declaration
    }
    div.indent
    {
         text-indent: 10px;
    }
    

    Just tossing it out there...

    Hammy