| View previous topic :: View next topic |
| Author |
Message |
WebFox
Joined: 08 Apr 2009 Posts: 6 Location: Russia
|
Posted: Fri May 01, 2009 11:24 am Post subject: php code beautifier |
|
|
| Any chance to get sometimes a php code beautifier integrated? Would be nice and helpful. |
|
| Back to top |
|
 |
hellboy
Joined: 06 Apr 2009 Posts: 7
|
Posted: Fri May 01, 2009 1:13 pm Post subject: |
|
|
Try to use 'Format' from context menu.
But there are some problems:
1) only for one file
2) Doc-comments are not aligned properly |
|
| Back to top |
|
 |
WebFox
Joined: 08 Apr 2009 Posts: 6 Location: Russia
|
Posted: Fri May 01, 2009 1:21 pm Post subject: Not what I meant! |
|
|
thx for your answer, but that is surely not any real code beautifying...
There should be some new line after ; and { } should be better (with new line) aligned, also vars better aligned from content like $x= "whatever" into $x = "..., and the same for functions and so on. The format instructions im context is only very basically formatting.
So I hope that a real code beautifier is sometimes coming. |
|
| Back to top |
|
 |
hellboy
Joined: 06 Apr 2009 Posts: 7
|
|
| Back to top |
|
 |
WebFox
Joined: 08 Apr 2009 Posts: 6 Location: Russia
|
Posted: Fri May 01, 2009 1:40 pm Post subject: Thx but... |
|
|
| Thx again, but I want this real integrated into Netbeans PHP IDE. I do not use Windows nor Linux, but MAC OS X. And Netbeans running on a MAC is a real fine instrument. Hope that sometimes it is integrated or any plugin is avilable. |
|
| Back to top |
|
 |
Tomasz Slota Posted via mailing list.
|
Posted: Mon May 04, 2009 7:59 am Post subject: php code beautifier |
|
|
We are not planning to integrate the PHP Code Beautifier because it is a
closed source application, but we are working on improving our
formatting capabilities.
-TS
WebFox wrote:
| Quote: | Any chance to get sometimes a php code beautifier integrated? Would be nice and helpful.
|
|
|
| Back to top |
|
 |
WebFox
Joined: 08 Apr 2009 Posts: 6 Location: Russia
|
Posted: Mon May 04, 2009 8:23 am Post subject: There is a open souce version! |
|
|
Thank you for your kind answer. Found meanwhile a open source version (php4 and php5) but was not able to get it working with Netbeans. Maybe that link helps a bit for a better formatting solution.
http://beautifyphp.sourceforge.net |
|
| Back to top |
|
 |
Tomas Mysik Posted via mailing list.
|
Posted: Mon May 04, 2009 9:20 am Post subject: php code beautifier |
|
|
Hi,
Dne pátek 01 května 2009 13:24:13 WebFox napsal(a):
| Quote: | Any chance to get sometimes a php code beautifier integrated? Would be nice
and helpful.
|
I don't know the application you are talking about but - if you want to run
some program for any PHP file in your project, try this:
- create a new Run Configuration, type Script
- do not use the default PHP interpreter but select your program
- run file
This could work I guess.
HTH,
Tomas
--
Tomas Mysik
address-removed |
|
| Back to top |
|
 |
|