This would be a separate program, and would be extremely difficult to write
as described. But you might take a look at tidyview at
https://sourceforge.net/projects/tidyview/, which is intended to allow
rapid experimentation with the parameters.
Steve
On Wed, Jun 8, 2016 at 8:41 AM, phin@mailnesia.com via RT <
bug-Perl-Tidy@rt.cpan.org> wrote:
Show quoted text> Wed Jun 08 11:41:46 2016: Request 115169 was acted upon.
> Transaction: Ticket created by phin@mailnesia.com
> Queue: Perl-Tidy
> Subject: feature request: helper script to read example perl code and
> create a perltidyrc that produces that style
> Broken in: (no value)
> Severity: (no value)
> Owner: Nobody
> Requestors: phin@mailnesia.com
> Status: new
> Ticket <URL:
https://rt.cpan.org/Ticket/Display.html?id=115169 >
>
>
> To minimize the time needed to study the detailed documentation and
> fiddling with various options, it would be helpful to have a helper script
> which could read sample code and output a perltidyrc with the options
> necessary to produce code matching the sample input. If it is determined
> that perltidy can't match the style, then it could assist in creating a
> useful bugreport.
>