Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7661099
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T13:33:13+00:00 2026-05-31T13:33:13+00:00

can anyone recommend tools/plugins that are capable of normalizing the coding style of a

  • 0

can anyone recommend tools/plugins that are capable of “normalizing” the coding style of a php document?

Oftentimes I find myself working on outdated codebase by different authors following different or no coding style at all. Before working on those documents, I often find I have to clean up the code and for quite a few things I just do a regexp search & replace, like fixing brace indentation, new lines, dot-connectors, spaces around operators and so forth…

I use Aptana Studio and like the default php formatting it offers, which is great for writing new code that conforms to a coding style. What I am looking for would ideally be some sort of tool or plugin that could take EXISTING code and even just slightly adopt it to a given coding style (or even set of regexp search & replace’s).

Anyone got any hints?

P.S.: Please do note that I am not per se asking for advice on enforcing coding standards, but rather on how to automatize the adaptation of old code base to a coding standard.

Edit: I found this topic Aptana auto format: Aptana supports formatting of code to the active coding style via shortcut cmd + shift + f. From what I’ve tried so far, it behaves a bit weird and not exactly producing the kind of output I’d expect. So, while this might be something I could get to work, and would still be interested in other solutions to this.

Edit #2: Also found this topic How to format code on aptana 3? stating that folder/project wide reformatting is not possible in Aptana as of yet.

Edit #3: Awared the link to the PEAR Code Beautifier with the correct answer. It requires some reading yourself into 🙂 Personally, I find most closely to what I am looking for was Aptana’s / Net Beans’ source formatting tools. For completeness sake, I also found a windows command line tool which looked promissing: http://www.waterproof.fr/products/phpCodeBeautifier/

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T13:33:14+00:00Added an answer on May 31, 2026 at 1:33 pm

    You can have a look at the PEAR Code Beautifier: http://pear.php.net/package/PHP_Beautifier

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can anyone recommend some useful performance analysis tools for PHP scripts? Anything that could
Can anyone recommend tools or articles that help me to learn how to TDD
Can anyone recommend a good server-side PDF generation tool that would work in a
Can anyone recommend some good resources that highlight the differences between Oracle and the
Can anyone recommend any tools for automating the deployment of web services and web
Can anyone recommend a tool (ideally FOSS) that can analyse an .NET assembly and
Can anyone recommend a free or commercial tool that detects memory corruption (NOT memory
Can anyone recommend a JavaScript+HTML5 library that supports posable figures? Think about those wooden
Can anyone recommend an Application, preferably for Mac, that will capture pixel coordinates inside
Can anyone recommend any tools for compile and runtime analysis of C++ code? I'm

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.