?
Solved

Apply Source Format

Posted on 2004-10-13
4
Medium Priority
?
466 Views
Last Modified: 2008-03-10
I have been looking all of the internet, for a program that will format php code into the right standard. IE

Before
if(something){dothis;}else{do this;}

after
if(something){
   Do this;
}else{
   Do this;
}

Macromedia's Dreamweaver has this option but its only for html code. I doens't touch the php.
Any Ideas??
0
Comment
Question by:ocsurf
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 27

Expert Comment

by:Diablo84
ID: 12298525
Take a look at this class from pear:

http://pear.php.net/package/PHP_Beautifier/
0
 
LVL 27

Expert Comment

by:Diablo84
ID: 12298556
0
 
LVL 27

Expert Comment

by:Diablo84
ID: 12298655
There is a source code "beautifier" program here also, but this is not free: http://www.textrush.com/formatx.htm

It does however support a range of languages including php.

Shareware download: http://www.tucows.com/preview/355268.html
0
 
LVL 9

Accepted Solution

by:
_GeG_ earned 2000 total points
ID: 12306022
and another one, i think it is free:

http://www.waterproof.fr/products/phpCodeBeautifier/

afaik you can customize the output, ie wether you want the opening { in the same line or on the next,...
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
This article discusses four methods for overlaying images in a container on a web page
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question