OM2 Posted February 28, 2012 Share Posted February 28, 2012 Can someone recommend a code beautifer Something to indent lines and format code so that it's easier to read There are a few online programs I've tried all of them and they're just not any good I'd much prefer a lightweight program on my machine Would be great if the program could handle all languages - everything from PHP to HTML to CSS Thanks in advance OM Quote Link to comment https://forums.phpfreaks.com/topic/257922-need-a-code-beautifier/ Share on other sites More sharing options...
blacknight Posted February 28, 2012 Share Posted February 28, 2012 DzSoft_PHP_Editor is a decent one Quote Link to comment https://forums.phpfreaks.com/topic/257922-need-a-code-beautifier/#findComment-1322016 Share on other sites More sharing options...
ManiacDan Posted February 28, 2012 Share Posted February 28, 2012 Two seconds on google produced this list of code beautifiers. Zend studio does very good auto-formatting. You should really be doing this yourself though. I do it by hand when I write. Quote Link to comment https://forums.phpfreaks.com/topic/257922-need-a-code-beautifier/#findComment-1322031 Share on other sites More sharing options...
leslie.g Posted February 28, 2012 Share Posted February 28, 2012 If you have a mac, then Coda is an amazing program. Its a code editor, ftp client, css edit and heaps more in one. Quote Link to comment https://forums.phpfreaks.com/topic/257922-need-a-code-beautifier/#findComment-1322144 Share on other sites More sharing options...
OM2 Posted February 29, 2012 Author Share Posted February 29, 2012 thanks for the replies guys trying ot some of those suggestions Dan: I said I searched and couldn't find ANYTHING useful - have tried ALL (online versions) those that come in search results (first page) Quote Link to comment https://forums.phpfreaks.com/topic/257922-need-a-code-beautifier/#findComment-1322147 Share on other sites More sharing options...
trq Posted February 29, 2012 Share Posted February 29, 2012 As has been stated, you should be formatting your code properly yourself in the first place. Quote Link to comment https://forums.phpfreaks.com/topic/257922-need-a-code-beautifier/#findComment-1322165 Share on other sites More sharing options...
creata.physics Posted February 29, 2012 Share Posted February 29, 2012 Normally people don't understand what proper code format is or how to do it on their own in the first place, which is why the guy asked other developers on php freaks to gain a better understanding. almost all coders eventually get tired of too much messy code and learn to format eventually. asking phpfreaks is a great start in my opinion. Quote Link to comment https://forums.phpfreaks.com/topic/257922-need-a-code-beautifier/#findComment-1322180 Share on other sites More sharing options...
OM2 Posted February 29, 2012 Author Share Posted February 29, 2012 As has been stated, you should be formatting your code properly yourself in the first place. i didn't reply to that point i go a bit over the top and make sure my code is all lined up perfectly it's not for my code it's for other peoples code that i want the beautifer for lets say i get a plugin for wordpress - and it's not quite working for me i like my braces to be on new lines for example - i just can't read otherwise i want a beautifier to line up everything nicely for me the online ones - they seem to be hit and miss Quote Link to comment https://forums.phpfreaks.com/topic/257922-need-a-code-beautifier/#findComment-1322250 Share on other sites More sharing options...
ManiacDan Posted February 29, 2012 Share Posted February 29, 2012 Why didn't something like prettyprinter work, then? You said you tried something (which works) and that it didn't work for you. Why? What else are you expecting? Quote Link to comment https://forums.phpfreaks.com/topic/257922-need-a-code-beautifier/#findComment-1322292 Share on other sites More sharing options...
scootstah Posted February 29, 2012 Share Posted February 29, 2012 This one seems to do what you want: http://beta.phpformatter.com/ Quote Link to comment https://forums.phpfreaks.com/topic/257922-need-a-code-beautifier/#findComment-1322299 Share on other sites More sharing options...
OM2 Posted February 29, 2012 Author Share Posted February 29, 2012 Why didn't something like prettyprinter work, then? oooh... that one just doesn't work! don't know why You said you tried something (which works) and that it didn't work for you. Why? What else are you expecting? i'm not sure where i said i had something that works - perhaps i was doing a bad job of explaining myself expecting: things to match up and line up so if there are braces - i want to have them on new lines if there are tags - they should have their content indented etc This one seems to do what you want: http://beta.phpformatter.com/ looks interesting i put some html in and it didn't format nicely (ok... it's a php formatter!!!) so not fair throwing html at it i'll try php later thanks for the link Quote Link to comment https://forums.phpfreaks.com/topic/257922-need-a-code-beautifier/#findComment-1322300 Share on other sites More sharing options...
scootstah Posted February 29, 2012 Share Posted February 29, 2012 I believe Dreamweaver also has a formatting feature, though I'm not positive on that. Quote Link to comment https://forums.phpfreaks.com/topic/257922-need-a-code-beautifier/#findComment-1322314 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.