Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
Problems? Is your data what you think it is?
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??
I usually use tabs, and each tabstop at 4 spaces. This seems to work just about everywhere, and it is very easy to read. If my code lines would go too far to the right with 4, I probably have too long code lines and/or too deep nesting anyways.

Posting code to this site however, I've sometimes converted the tabs into two-space indents instead of four (we all can agree that conversion is almost a must here in any case?), because with the fonts here, it is still readable with two. Same with emacs, that big standard font makes two-indent readable. Until I try to open the same source in any other editor, then I have to increase the indent. Well, of course not *any*, but any of the others I usually have access to or use.

My goal is of course that it should be easily read anywhere, by anyone. But the two-space indenters usually say the same, so I guess we are stuck. :) It is almost as religious an issue as best editor or where to put the braces...


You have moved into a dark place.
It is pitch black. You are likely to be eaten by a grue.

In reply to Re: The One True Style of indentation: by Dog and Pony
in thread The One True Style of indentation: by Petruchio

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!
  • 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, 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, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • Outside of code tags, you may need to use entities for some characters:
            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.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others having an uproarious good time at the Monastery: (15)
    As of 2014-04-17 19:07 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      April first is:







      Results (453 votes), past polls