Help integrating PHP_Beautifier into PHPed |
Veteran
|
I haven't tried this (I use the free PolyStyle included with PHPEd Pro and just live with its nagware statuses), but isn't PHP_Beatifier an exe? if so you won't need the @PHP5@.
|
||||||||||||
|
Site Admin
|
AFAIK, PHP_Beautifier is a PHP/PEAR project http://pear.php.net/package/PHP_Beautifier
Regarding PolyStyle, it is not free. It is trial version that will expire in 30 days or about. If it failed to expire for you, it does not change anything from the legal points of view. You can't use it after 30 days. |
||||||||||||
_________________ The PHP IDE team |
|
BUt atleast can anyone help me to integrate PHP_Beautifier.
dmitri, can you help ? |
||||||||||||
|
Guru master
|
I haven't used it yet but I just took a look at the docs and i think the following should work:
The basic syntax for the command is pretty much just: @php5@ "<path\php beautifier file>" -f @FName@ -o @FName if you installed in c:\beautifier the commandline pretty much becomes @php5@ "c:\beautifier\php_beautifier.php" -f @FName@ -o @FName If you have spaces in your project path you might want to quote the filenames too: @php5@ "c:\beautifier\php_beautifier.php" -f "@FName@" -o "@FName" Note that this just runs with the default settings. If you want to use different settings for tabs or spaces etc you might want to look at the other possible arguments in the documentation |
||||||||||||
|
|
Thanks a lot Blizz, Ill try it out and see if it works. Ill post back an update. |
||||||||||||||
|
|
Hello Blizz
I tried
When i selected an formatted text such as
It did not perform any changes. Here is what shows in the Logs:
Its not working |
||||||||||||||||||
|
Guru master
|
I missed the fact that you wanted it to work on a selection.
What you wrote here contains 2 errors: First is that the script is named "php_beautifier" (that's what read in the docs), you used phped.php. Please verify that D:\PHP_Beautifier\php_beautifier exists to make sure that is correct or locate it. Secondly: You forgot the @ behind the second FName, but since you want to work on a selection that entire part becomes obsolete. That makes the entire thing easier, the commandline should be: @php5@ "D:\PHP_Beautifier\php_beautifier" Normally that should work EDIT: Also as Dmitri said above, it is a PEAR project which means it needs the PEAR infrastructure to work. |
||||||||||||
|
Site Admin
|
yep, something like this should be executed in the command prompt: if pear.bat is not in %PROGRAMFILES%\NuSphere\PhpED\php5, you have to install pear itself: cd %PROGRAMFILES%\NuSphere\PhpED\php5 go-pear.bat <press enter when it asks to install for system> <press enter when it asks to install all> <press enter when it asks to quit> then run it and update channels: pear.bat channel-update pear.php.net then upgrade pear's packages to the latest versions pear.bat upgrade-all then install the package pear.bat install php_beautifier it may print something like Failed to download pear/php_beautifier within preferred state "stable", latest release is version 0. 1.14, stability "beta", use "channel://pear.php.net/php_beautifier-0.1.14" to install install failed which means you have to run: pear.bat install channel://pear.php.net/php_beautifier-0.1.14 |
||||||||||||||
_________________ The PHP IDE team |
solution found |
|
I am searching for the solution to the similar issues related to PHP integration and most of my searches are almost found. The result from the members are equally important and I would like to thank you for keeping the forum updated with details. Thanks for the good work.
|
||||||||||||
|
Help integrating PHP_Beautifier into PHPed |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by