For PHP, install http://pear.php.net/package/PHP_Beautifier then write a simple Text Filter to run your preferred beautifier settings on the input (which is either STDIN or argv[1], there's some contradiction between the release notes and the manual). Today mine looks like:
#!/usr/local/zend/bin/php-cli <?php require 'PHP/Beautifier.php'; error_reporting(-1); $source = file_get_contents($argv[1]); // might be changed to php://stdin w/ v10 $oToken = new PHP_Beautifier(); $oToken->addFilter('Pear'); $oToken->addFilter('DocBlock'); $oToken->addFilter('ArrayNested'); $oToken->addFilter('EqualsAlign'); $oToken->setInputString($source); $oToken->process(); $oToken->show(); For perl, you can do the same thing w/ Perltidy. I haven't tried anything yet with JS or Python. -- You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at <http://groups.google.com/group/bbedit?hl=en> If you have a feature request or would like to report a problem, please email "supp...@barebones.com" rather than posting to the group. Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>