1: Open Editplus, select Tools -> Configure User Tools ... menu. 2: Select "Add Tools -> Applications" in the pop-up window, give a good name for the new program, such as here we use "debug php", enter "Debug PHP" in Menu Text. Click on the button on the right side of the "command line" to find the path where your php.exe is located, for example, "c: / php/php.exe". Then click the drop-down button on the "Parameter" to select "File Path", and finally select the "capture output" check box. 3: Test now, create a new PHP file, press shortcut Ctrl 1 to activate the tools we set up (if you set multiple tools, shortcuts may vary), now you can see it already Working properly. But there is still a little less ideal: If your PHP program is wrong, you will prompt you to make a short error, click this line prompt, editplus is always prompting you to find a certain file, whether to create new. Next, we have to correct this feature. 4: Open the User Tool Settings window and find the "Debug PHP" tool just set. Click the "Output Mode" button next to the "Capture Out" check box to pop up a form that defines the output mode, remove the "Using the Default Output Mode" to remove the check box in front of "Regular Expression" In the text box, "^. In (. ) Line ([0-9] )" (excluding quotation marks), careful friends may find that the syntax of the regular expression here is used here. Then, select "Preset Expression 1" in the "File Name" drop-down menu, that is, the first parameter in the upper regular expression, "row" drop-down menu item selects "Preset Expression 2", "column "The drop-down item is maintained empty. Then save the settings. 5: Ok, let's try it now, double-click the number of rows, editplus automatically activate the error file, and position the cursor to the wrong line, is it particularly convenient?! If you can't switch the wrong line number, please try to make Move as follows: 1. Php.ini HTML_ERRORS = OFF Open // If you don't open, 3. The expression is modified 2. Parameter is changed: -Q -F "$ (filepath)" // does not add "symbol The file debugging file debugging file debugging ..// q does not output HTML header information, you remove it, but you generally don't use those Header information 3. "^. In (. ) Line. [0-9] ) "Change to" ^. IN (. ) On line ([0-9] ) $ "// If you still don't, please pay attention to debug results, modify the expression yourself to remove the file name and Line number
6: Position the clip library on the PHP4 functions, you can use the [Insert]-> [Match Clip] command to automatically complete the complete PHP function (or press F2 key directly) 7: Similar to the above, After selecting some text, you can also complete it. (Same f2) 8: In [Parameter Selection] -> [Settings and Syntax] -> PHP-> Automatic completion, select the php.acp file in the directory, you can customize your own automatic completion mode .9: I want to preview instant preview Files, you can add a local directory in the [Parameter Selection] -> [Tool] -> Web server, (Be careful not to add http: //, it should be a valid site). Such as: host-> localhost / php | root directory -> D: / PHP host-> localhost / asp | root directory -> D: / ASP host -> localhost / cgi | root directory -> d: / cgi completion settings As long as the script file is located in these director (no problem), it can be explained correctly. 10: Various grammar and template files can be obtained at http://editplus.com/files.html, can be selected and edited as needed. 11: CTRL F11 Displays a list of functions in the current file. 12: Add a variety of user tools. Such as: launch MySQL Server Management Tool -> C: /Mysql/bin/winmysqladmin.exe Start Apache Server -> C: / Apache /BIN/apache.exe -k start Apache Server -> C: /Apache/bin/apache.exe -k stop (shutdown) 13: DBG Attached to a prof_results.php file, you can analyze the performance of the PHP program. Although not The real debugger, but it is enough. OK! After the transformation, is it a bit like an IDE? Also, no instant help ... see me, come back: 14 PHP_manual_en.chm (best extension help Manual) Add to the user tool, when you encounter the keyword you need to refer to, point the cursor, press the shortcut key Ctrl 1, see it. When you want to have a function name, you will follow Article 1 Method to call up the function, then ... how? The above is the setting of the debugging tool, because this type of tool is more, the basics above the above are almost the basics, so much more. This article is transferred from www.9cbs.net