|
I cannot seem to get the beautifier to work. it shows in the log that it was called but the PHP code never changes. All it does is add a skeleton html page at the bottom of the php code. What am I missing?
|
||||||||||||
|
Site Admin
|
please read this howto-use-a-php-script-for-my-editing-t753.html
Don't forget, if any of the directories contain spaces, you have to quote them. |
||||||||||||
_________________ The PHP IDE team |
|
I found my setup error but now it isn't recognizing @FName@. It says "No input file specified in the Log yet it pops up a message saying the file was externally modified. Reload?" and it shows the correct path and file name.
|
||||||||||||
|
Site Admin
|
do you run @php@, @phpcli@, @php5@ or @php5cli@ ?
|
||||||||||||
_________________ The PHP IDE team |
|
@php5@
Here is my setup string: @php5@ -q "C:\Program Files\nusphere\php5\PEAR\PHPBeautifier\Beautifier.php" "@FName@" I have tried @FName@ with and without quotes - same result. |
||||||||||||
|
|
I havent been too impressed with Polystyle. I dont like the way it does the formatting by default, and while I have tried to edit the style (both graphically, and from within PhpEd) it never seems to get it right. For example, I use PhpDoc extensively. For some reason, on a test file, Polystyle moved all of my phpdoc comments for the function descriptions to the top of the file... uh, wtf?
now, there is a 95% chance that I'm, doing something wrong, but to be honest, I dont have the time to learn the quirks of another product. If I change the formatting so that there is a space between the } and the word else, I dont have time to figure out why it still makes it }else. The one rudder mentioned ([url=]phpCodeBeautifier[/url]) seems to format the code exactly the way i like it as its defaults. And the instructions on how to use it are pretty straight forward ([url]phpCodeBeautifier/manual.php[/url]). While it says there is a GUI version, I could only find a GUI for version 0.8. version 1.0.1 seems to be command line only. While the GUI does save profiles, and allows you to reuse those profiles, I cant find info on how to use a profile with the command line version. But hey, its free. Doesnt seem like it would be that hard to integrate into PhpEd, even if it was "unofficial" |
||||||||||||
|
|
What is the status of the plans to create a built-in code-beautifier for PHPEd? |
||||||||||||||
|
|
I am also looking for the feature. In netbeans, it is built in and you only have to press ALT+SHIFT+F and it formats. Pretty simple.
I dont think there should be an external formatter, but PHPed should use its own built in formatter, all the major IDE's these days have their own built in Formatters. |
||||||||||||
|
Site Admin
|
In PhpED you can Edit->Reindent Code and it will format your file.
If you want to run this function with Ctrl-Alt-F shortcut, feel free to assign it in Tools->Settings->Editor shortcuts |
||||||||||||
_________________ The PHP IDE team |
|
I checked the Edit Menu, and i did not find Reindent code. |
||||||||||||||
|
Site Admin
|
Dear black,
I did not mean polystyle. I meant our own NuSphere code formatter that is available in PhpED version 5.8. You can select your piece of code and reformat it. @Ibn Saeed
if you're using version 5.8, it should be there. If not, try Right Click on menu->Customize->Commands tab->select "Edit" in the category->scroll the pane on the right to the bottom where you can find "Re-indent code". Drag it to the menu. |
||||||||||||||
_________________ The PHP IDE team |
How do I install a code beautify or formatter? |
|
||
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