hotwire Posted December 14, 2008 Share Posted December 14, 2008 Hi, I know the best method is to start out with good coding syntax and positioning, but I always seem to have brackets unaligned and more spaces in other places than some.. Is their a good program that can straighten PHP coding and make it look neat? Brackets and all.. Thanks for any help on this.. Quote Link to comment Share on other sites More sharing options...
Mchl Posted December 14, 2008 Share Posted December 14, 2008 There was a script called PHP Beautifier in PEAR some time ago. Maybe it's still there. [edit] Yup, still there http://pear.php.net/package/PHP_Beautifier Quote Link to comment Share on other sites More sharing options...
hotwire Posted December 14, 2008 Author Share Posted December 14, 2008 Thanks Mhcl, Gonna try this out, I notice it is a web program, but that may work just as good.. I came across a program called HTML Tidy that have plugins for PHP and many other scripts.. It seems to be able to format and do other things with PHP.. Gonna see. Anyhow, thanks for the link.. AJ Quote Link to comment Share on other sites More sharing options...
Mchl Posted December 14, 2008 Share Posted December 14, 2008 PHP Beautifier is not really a web program. It is a PHP script run from console (or at least it was so, when I checked it some three years ago) Quote Link to comment Share on other sites More sharing options...
rtadams89 Posted December 15, 2008 Share Posted December 15, 2008 How about phpStylist: http://sourceforge.net/projects/phpstylist/ You can use it from the command line if you have PHP installed on your local machine, or upload the single PHP file to your web server and do everything from a web front end. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.