No such thing as a small change | |
PerlMonks |
Challenge: Perl::Tidy subprocess for faster formattingby LanX (Saint) |
on Jul 03, 2022 at 14:47 UTC ( [id://11145254]=perlquestion: print w/replies, xml ) | Need Help?? |
LanX has asked for the wisdom of the Perl Monks concerning the following question:
Hi for many years now many IDEs offer to run code-snippets thru perltidy in a launched sub-process. But this comes with noticeable delay, because most of the time is lost for startup of perltidy, while Perl::Tidy offers a server mode. A faster tidying would allow formatting on-the-fly on key-triggers, like when typing return or closing a sub.
ProofThe following code is formatting itself 1,10 and 100 times thru perltidy, and an average run takes less than 0,07 secs
Challenge
Possible technologies
Extra Points
demo code
Cheers Rolf
Back to
Seekers of Perl Wisdom
|
|