|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
hi ! anyone has a source code beautifier for php and/or html ? shareware or freeware dosen't matter. 10x in advance.
__________________
Help to be helped ! |
|
#2
|
||||
|
||||
|
what is a beautifier?
If you mean something that properly indents,deletes white space, adds quotes etc to your code then I would recomend trawling google for something. Alternatively you could write yourself a php script to do this for you. Or (and this is probably the best option) you could make sure you always write code neatly in the first place (unless you didn't write it). Hope this helps Banks |
|
#3
|
||||
|
||||
|
Moved to Scripts forum
__________________
Give a person code, and they'll hack for a day; Teach them how to code, and they'll hack forever. Analyze twice; hack once. The world's first existential ITIL question: If a change is released into production without a ticket to track it, was it actually released? About DrGroove: ITIL-Certified IT Process Engineer - Enterprise Application Architect - Freelance IT Journalist - Devshed Moderator - Funk Bassist Extraordinaire |
|
#4
|
||||
|
||||
|
Heck, I use emacs for my editor and it can beautify php code. Simply mark the region you want to beautify and then type M-x indent-region
That will automatically indent the highlighted block as PHP code.
__________________
Up the Irons What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home. "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest Down with Sharon Osbourne Puzzle of the Month solved by Keath and KevinADC, superior perl programmers of the month |
|
#5
|
|||
|
|||
|
Try tidy for HTML
http://tidy.sourceforge.net/ It has some 'limited support' for PHP (in other words, it won't screw up the PHP most of the time), but it does a great job of cleaning up HTML. Enjoy! --- Cerbere |
|
#6
|
||||
|
||||
|
Theres a link to a PHP beautifier on the PHPedit.net homepage... haven't checked it out, tho
|
|
#7
|
|||
|
|||
|
I was Googling for the same and just as I found this thread, I found Pretty Printer, an online code beautifier for PHP, Java, C++, C, Perl, JavaScript and CSS. I tried it out and it seems to work fine.
The onlyissue with this is privacy. You're sending your code to their site for it to beautify it, so... You can find it at PrettyPrinter dot DE. New poster, so I can't post links yet! - Aalaap |
![]() |
| Viewing: Dev Shed Forums > Web Site Management > Scripts > php and/or html source code beautifier ? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|