Perl Monk, Perl Meditation | |
PerlMonks |
comment on |
( [id://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
|
|