Often times I only want to load the code into my editor so that I can see it with syntax highlighting and/or so that I can use my macros to reformat it to my taste. I just make it easoer for me to read and understand the code I'm looking at. Under these circumatstances ^A^C<alt-tab>^N^V^Qpf is considerably easier than navigating to an appropriate directory, having to come up with a name, saving it, switching to the editor and loading it, remembering to throw it away afterwards.

Mostly, I just wanted to know if I was the only one seeing the problem--was it my browser, my configuration etc--which seemed like a reasonable thing to ask, though one ............. seems to think that just asking this was sufficiently henous to be worthy of their time and effort in clicking --?

I tracked it down a bit further and worked out why I only get bitten by it sometimes. It depends on whether the leading whitspace is spaces as in 269017 or tabs as 269051.

It appears that browsers (Opera at least), treat spaces as a part of the content they are displaying, but tabs as not! Which given that the D/L code link deliveres the context marked as text, seems pretty bizaar? I often wished that code tags would universally convert tabs to spaces, but that probably to insignificant a detail to be bothered with changing until someone important decides it is.


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller



In reply to Re: Re: d/l code link and indentation problem? by BrowserUk
in thread d/l code link and indentation problem? by BrowserUk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.