Those of you who are using the 'PHP development tools' (PDT ) plugin for Eclipse should know this is the most wanted ever feature from the PDT development team (Zend company). I think I know the reason why it's still not implemented - it's available for the commercial PDT analogue - Zend Studio for Eclipse.
I did a wide research half year ago and didn't find anything even close to useful. The breakthrough came a month ago. I call it pure luck - I don't know how I ended up to a site (free hosted) in totally illegible for me language (Chinese?) except it's title
Eclipse PDT (PHP Development Tools) - PHP Code Formatter Plugin (prototype)I was able to (almost) understand the rest thanks to Google Translate project.
However I wasn't able to find any reference to the person/team behind this page. If someone can give me information in this matter, please do it. I really wanna say "Thank you" to this guy.
To understand better how lucky I was, I'll tell you that some days later I was trying to open this page with no success - it was restricted to US IP's only (and I'm far from US located).
Aptana 2.+ (tested on 2.0.2) OR Eclipse 3.4+
Eclipse Web Tools Platform (WTP) 3.+ - tested on v3.1.1
Eclipse Dynamic Languages Toolkit (DLTK) 1.+ - tested on v1.0.1
PHP Development Tools (PDT) 2.+ - tested on v2.1.2
Project URL: http://atlanto.web.fc2.com/pdt/workshop/formatter_plugin.html
Direct download (free-source.net mirror) PDT 1.3: va000137.pdt.tools.formatter_0.92.4.jar
Direct download (free-source.net mirror) PDT 2.x: va000137.pdt.tools.formatter_0.92.4.v20081027.jar
Copy the downloaded .jar file to your Aptana/Eclipse 'dropin' folder (INSTALL_PATH/dropins), restart Aptana/Eclipse, done. Yep, so easy it is.
Now go to Preferences / PHP / Code Style / Formatter and set your preferred code styling options.
EDIT: Thanks to tgtje who pointed me to PDT Tools project on SourceForge Japan. You can download the most recent version of Code Formatter dropin from there and I can say: "Thank you so much atlanto from sourceforge.jp" :)
Site Blog - Programming
Why not this:
DSV PHP Editor is a program for creating, editing and debugging PHP scripts, HTML, CSS, Java Script and SQL pages. Editor is designed specif ically for PHP development; it is comfortable both for beginners and experienced programmers. Has auto complete, PHP function parameters hints, built-in HTTP server, open/save and preview files to/from FTP, code explorer, project manager with local and remote view, publish project or publish selected project files to FTP options, upload local directory to FTP option, search and replace in files utility, 'on mouse over' help hints for PHP functions, one-click run, debug and syntax check, quick insertion of PHP functions, code templates/snippets , clipboard monitoring, To Do list, F1 PHP, HTML and CSS help support, MySQL explorer and MySQL query builder.
Site Blog - Programming
@pety - I know many good editors (Notepad++, PSPad, gedit, X Emacs, Kate, Kwrite, etc). DSV PHP Editor seems to be very good one (although not useful for me as I'm developing in Linux environment recently) , but it's not IDE (Integrated Development Environment).
Reading your comments, I see you know what I'm talking about, I'm just explaining the differences for people with less knowledge in this direction :)
You must be logged in to make comments on this site - please log in, or if you are not registered click here to signup