Padre::Plugin::PerlTidy - Format perl files using Perl::Tidy


Padre-Plugin-PerlTidy documentation  | view source Contained in the Padre-Plugin-PerlTidy distribution.

Index


NAME

Top

Padre::Plugin::PerlTidy - Format perl files using Perl::Tidy

VERSION

Top

version 0.16

SYNOPSIS

Top

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).

INSTALLATION

Top

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.

METHODS

Top

padre_interfaces

Indicates our compatibility with Padre.

plugin_name

A simple accessor for the name of the plugin.

tidy_document

Runs Perl::Tidy on the current document.

export_document

Export the current document as html.

tidy_selection

Runs Perl::Tidy on the current code selection.

export_selection

Export the current code selection as html.

AUTHORS

Top

COPYRIGHT AND LICENSE

Top


Padre-Plugin-PerlTidy documentation  | view source Contained in the Padre-Plugin-PerlTidy distribution.