Padre::Plugin::PerlTidy - Format perl files using Perl::Tidy
This is a simple plugin to run Perl::Tidy on your source code.
Currently there are no customisable options (since the Padre plugin system doesn't support that yet) - however Perl::Tidy will use your normal .perltidyrc file if it exists (see Perl::Tidy documentation).
You can install this module like any other Perl module and it will become available in your Padre editor. However, you can also choose to install it into your user's Padre configuration directory only:
Install the prerequisite modules.
perl Makefile.PL
make
make installplugin
This will install the plugin as PerlTidy.par into your user's ~/.padre/plugins directory.
Similarly, "make plugin" will just create the PerlTidy.par which you can then copy manually.
Indicates our compatibility with Padre.
A simple accessor for the name of the plugin.
Menu items for this plugin.
Runs Perl::Tidy on the current document.
Export the current document as html.
Runs Perl::Tidy on the current code selection.
Export the current code selection as html.
Brian Cassidy <bricas@cpan.org>
Patrick Donelan
Copyright 2008-2010 by Patrick Donelan, Brian Cassidy
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Padre::Plugin::PerlTidy, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Padre::Plugin::PerlTidy
CPAN shell
perl -MCPAN -e shell install Padre::Plugin::PerlTidy
For more information on module installation, please visit the detailed CPAN module installation guide.