Put the plugin in the phped installation directory. 3. open phpedTools-Settings, find the Integration option, and click AddMenu on the right to use and install phpCodeBeautifier.
1. download phpcb http://www.waterproof.fr/products/phpCodeBeautifier/
2.decompress phcmd.exe to the phped installation directory.
3. open phped Tools-Settings
Find the Integration option and click "AddMenu" on the right to enter the name you want, for example, FormatCode.
4. click Edit on the right of the menu you just added. in the parameter window, follow the configuration below.
Execute with: shell
Command line: C: \ Program Files \ NuSphere \ PhpED \ phpcB.exe -- equal-align-position 50 -- padding-char-count 4 -- space-after-if -- space-after-switch -- space-after- while -- glue-amperscore -- force-large-php-code-tag -- align-equal-statements -- comment-rendering-style PEAR -- extra-padding-for-case-statement -- glue -arrow -- optimize-eol -- one-true-brace-function-declaration @ FName @
Change C: \ Program Files \ NuSphere \ PhpED to your phped installation path.
Shortcut cut: this is the Shortcut key for execution. I set Alt + F myself.
Select the following two Options in the Options window:
Work with editor
Return results to editor
Click close to close the window and save
Open a messy php file and format it to see if it works.