Your skill will accomplish what the force of many cannot |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
You want a sub-tidy which formats embedded strings and here-docs?
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) In reply to Re: Best practices and any way to have Perl Tidy clean it up
by LanX
|
|