in reply to Best practices and any way to have Perl Tidy clean it up
I'm not aware of any possibility in perltidy for hooking an external parser for languages like SQL.
And how is tidy supposed to know what kind of sub-language you are using? Heuristics?
My best practice for embedded code is to manually change the mode in emacs and start a reformatting process on selected regions. When needed I even put this in a macro assigned to a key.
Cheers Rolf
( addicted to the Perl Programming Language)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Best practices and any way to have Perl Tidy clean it up
by walkingthecow (Friar) on Apr 13, 2013 at 14:22 UTC | |
by fishmonger (Chaplain) on Apr 13, 2013 at 14:47 UTC | |
by hdb (Monsignor) on Apr 13, 2013 at 14:37 UTC | |
by LanX (Saint) on Apr 13, 2013 at 14:56 UTC |