Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
"Curly braces should be aligned vertically over themselves on the same scope, rather than trailing off the end of a line."
Actually, as a disciple of the One True EditorTM, I have a very editor specific reason for prefering them at the end of the line. If I move onto a closing brace, the opening brace flashes. If the opening brace is not on the screen, emacs shows the line that the brace is on in the status area. "for (;;) {" is useful, "{" tells me nothing.
Besides emacs indents for me, and will tell me if things are wrong by not indenting correctly. It's a wonderful feedback loop (along with color highlighting, try missing a quote and watching everything look like a string, easy to spot and fix).

-pete
Entropy is not what is used to be.

In reply to Re: (OT) Editor-neutral code formatting by dreadpiratepeter
in thread (OT) Editor-neutral code formatting by Ovid

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



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2022-01-19 09:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (55 votes). Check out past polls.

    Notices?