Turn from: http://www.lvtao.net/tool/editplus-phpcb.html
PHPCB Download: http://download.csdn.net/detail/frt007/9533158
using EDITPLUS+PHPCB to create simple PHP code formatting tools
PHPCB Download: http://download.csdn.net/detail/frt007/9533158
Each of our developers wants to write beautiful neat code, but because in the development process will be too much of the focus on the development, ignoring the neat code, how to do it. I am here to introduce you to a: PHP code beautifier combined with EditPlus to create the perfect coding tool.
Software:
PHP Code Beautifie (official website: http://www.waterproof.fr/)
EditPlus (official website: http://www.editplus.com/)
The steps are as follows:
First download the PHP Code beautifie and put it under the EditPlus installation root directory.
Then set the parameters, click under editplus: Tool => parameter Settings => User tool => Add tool => application.
1 Menu Text: I write a name casually, such as I write "format code" here
2) command to browse to the phpCB.exe we just put in the root directory
3) Parameter:--space-after-if--glue-arrow--optimize-eol--space-after-switch
--space-after-while--space-before-start-angle-bracket
--one-true-brace-function-declaration--one-true-brace
--extra-padding-for-case-statement--glue-amperscore
--change-shell-comment-to-double-slashes-comment--indent-with-tab
--force-large-php-code-tag--force-true-false-null-contant-lowercase
--comment-rendering-style PEAR--equal-align-position 50
--padding-char-count 1 "$ (FilePath)"
4 Initial directory: $ (FILEDIR)
5 action: Run as Text filter (replace)
The parameters are set to the following figure:
Execute: The tool = code is formatted.
PHPCB Download: http://download.csdn.net/detail/frt007/9533158