Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: Perl Best Practices PerlTidy

by bluto (Curate)
on Dec 14, 2005 at 16:35 UTC ( #516685=note: print w/ replies, xml ) Need Help??


in reply to Re: Perl Best Practices PerlTidy
in thread Perl Best Practices PerlTidy

++. If perltidy could replace cperl's indentation that would be great. I would assume it could work on small sections of code whenever a block/construct was closed (e.g. insertion of a close brace/paren or semicolon). At my elisp skill level I'm afraid I'd have to resort to something blunt like processing the whole buffer on each character insertion. Now where did I leave my supercomputer? :-)


Comment on Re^2: Perl Best Practices PerlTidy
Re^3: Perl Best Practices PerlTidy
by diotalevi (Canon) on Dec 14, 2005 at 17:04 UTC
    I don't generally like things that re-indent when I'm not doing something like saving the buffer (obviously) or hitting tab to request a reindent.
      I like the automated indentation happen as soon as reasonable (e.g. after a return) on a small scope, so I can visually verify it's exactly what I want. I can get perltidy to do 98% of what I want, but there are rare times when I want a specific hand coded indentation, and I don't want it to change silently afterward. I'm probably just too picky or don't know enough about perltidy to rely on it 100% yet.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://516685]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (17)
As of 2015-07-02 18:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (44 votes), past polls