Connecting Tech Pros Worldwide Help | Site Map

PHP source code reformat pgm for Linux?

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 17th, 2005, 02:29 AM
Adams-Blake Company
Guest
 
Posts: n/a
Default PHP source code reformat pgm for Linux?

I have several 500 to 1500 line PHP programs that need to be re-formatted so
that they look "pretty"..... proper indents, etc.

Anyone know of something that will do this under Linux? Maybe a VIM or Emacs
script/plugin that will read the source and re-format it for me (I use nedit
and I don't think it will do such a thing.... and if so I don't know how.)

I know there is a $50 one out there but this is a one-time deal on a few
modules and not something that will be used again.... and it only runs on
Windows.... but I have Win4Lin so I could make it work if I wanted to spend
that much $$... which I don't!

Thanks,

Al


  #2  
Old July 17th, 2005, 02:29 AM
Amir Khawaja
Guest
 
Posts: n/a
Default Re: PHP source code reformat pgm for Linux?

Adams-Blake Company wrote:[color=blue]
> I have several 500 to 1500 line PHP programs that need to be re-formatted so
> that they look "pretty"..... proper indents, etc.
>
> Anyone know of something that will do this under Linux? Maybe a VIM or Emacs
> script/plugin that will read the source and re-format it for me (I use nedit
> and I don't think it will do such a thing.... and if so I don't know how.)
>
> I know there is a $50 one out there but this is a one-time deal on a few
> modules and not something that will be used again.... and it only runs on
> Windows.... but I have Win4Lin so I could make it work if I wanted to spend
> that much $$... which I don't!
>
> Thanks,
>
> Al
>[/color]

JEdit (http://www.jedit.org) has a nifty plugin named AStyle Beautifier.
It works well on PHP source code.

--
Amir Khawaja.

----------------------------------
Rules are written for those who lack the ability to truly reason, But
for those who can, the rules become nothing more than guidelines, And
live their lives governed not by rules but by reason.
- James McGuigan
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.