Does anyone have a handy way to run perltidy on code embedded in POD? It feels very backwards to be indenting that by hand when I run perltidy for everything else. Maybe an extension to Pod::Tidy?
This is a bit of a hack, but if you use vim, try this:
vnoremap,pt :!perltidy<cr>
Then, if you enter visual mode (hitting ctrl-v and selecting the lines you want), you can just type
I'm sure emacs has something similar, I just don't know what it is.
For Emacs users
arc on 2007-01-11T10:54:19
The Emacs equivalent isshell-command-on-region
, which is bound toM-|
by default. To tidy the region, typeC-u M-| perltidy RET