Configure the PHP debugging environment for editplus

Source: Internet
Author: User
Configure the PHP debugging environment for editplus Add to PhP Manual
1.1 open editplus and choose [tools] (tools)> [configure user tools...] (configure user tools)
1.2 click [add tool] (add tool) and select [HTML Help File (*. CHM)]. (HTML Help File)
1.3 configure according to the parameters in Figure 1.jpg. The [file name] is the Chinese manual file officially downloaded by PHP.
1.4 move the cursor over the function to be queried in the open PHP file and press Ctrl + 1 (because I put the "php manual" in the first item of user tools, the second item is Ctrl + 2, and so on). In this way, the PHP Chinese manual is opened and the description page of the function is automatically located. If the function cannot be found (for example, the input of the function name is incorrect ), directly jump to the index page of the manual.

2. PHP syntax check
2.1 Open editplus and choose [tools]-> [configure user tools...].
2.2 click [add tool] and select [Program].
2.3 configure according to Figure 2.jpg, and configure the command path according to the actual PHP installation path.
2.4 click the [output pattern...] button and configure it according to Figure 3.jpg.
2.5 press Ctrl + 2 to check the syntax. If there is a syntax error, double-click the error message to locate the error line.

Supplement: If php cannot be found correctly. if the module cannot be loaded, change the value of [argument] To-c "file full path/PHP. ini "-l" $ (filepath )"

3. PHP code analysis
3.1 open editplus and choose [tools]-> [configure user tools...].
3.2 click [add tool] and select [Program].
3.3 configure according to Figure 4.jpg, and the program specified in command is in the attachment.
3.4 click the [output pattern...] button and configure it according to Figure 5.jpg.
3.5 press Ctrl + 3 to perform code analysis. If there is a code analysis prompt, double-click the analysis prompt to locate the corresponding line.

4. PHP code beautification

The value of [argument] is: -- space-after-If -- Optimize-EOL -- space-after-switch -- space-after-while -- space-before-start-angle-bracket -- space-after-end-Angle -bracket -- 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)"

[Argument] Description:
The last parameter specifies the file name (this we should be able to see), the previous parameters are used to define the code beautification format, the meaning of each parameter see the official website: http://www.waterproof.fr/products/phpCodeBeautifier/manual.php

Note: phpcodebeautifier also has a GUI tool. I personally think that tool in editplus is meaningless, so no configuration is available. If you are interested, You can Google it yourself.

Code beautification is easy to use. After you finish writing the code, you can automatically add spaces, analyze the branch structure, and indent the code. After formatting the code, you can see it clearly, however, you must set the encoding format. Otherwise, garbled characters will occur. Attach the software used. In editplus, you can set it with common syntax files. We recommend that you set the code to the font.

Attachment download:
Zendcodeanalyzer.rar(126.14 KB)

Phpcb.rar(68.07 KB)
Editplus3green .rar(1.22 MB)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.