Jump to content

Need a code beautifier


OM2

Recommended Posts

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

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.