Make editplus a powerful php Editor

Source: Internet
Author: User
Tags php editor php template

Before starting, we should first review the method of Hot Key Binding. By the way,ArticleEditplus v2.12 Chinese version. Open editplus, select tool> parameter settings, select the keyboard in the pop-up dialog box, select the command to bind, and move the cursor to the text box that presses the new shortcut key, press the shortcut key you want. If the "NONE" option is displayed under the text box, the shortcut key is available. Click "allocate" on the right to bind the key. Binding frequently-used commands to hotkeys can greatly improve productivity. The combined use of multiple hotkeys will produce surprising results, with the explosive pleasure of fighting games.

Thanks to PhP & more for some changes.

1. Create a PHP template and create a PHP template in parameter settings
Generally, the template file is actually

CodeFragment:
<? PHP
?>

Save it as template. php.
Create a PHP template in the parameter settings> template, and then select the file to save the new file.

2. Add the auto-completion function of the Function
My version does not seem to have been automatically completed by PHP.
To download a php acp from the editplus website, go to the parameters> Settings and syntax and add this auto completion in PHP.
Settings: http://www.aspid.cn/dev/20060627475.asp

It is also an interesting way to call the edited text font.
Open the editplus editing library. If you cannot find the editing library, press Alt + Shift + 1 to display the editing library. Locate the editing library on HTML 4.0. Now, write a body in the editor on the right and press F2. Is it fun?

3. Real-time help for Adding Functions
From here on, we will use the editplus user tool. Editplus provides 10 user tool groups. Each group can contain several Custom User tools. Open the tool and configure the user tool. Click Add tool, select the HTML Help file, and select the PHP chm format manual in the pop-up dialog box. Then fill in the PHP manual in the menu text. Click OK AND THE HELP function will be added.

Move the cursor over a function, click the tool (or we can select the user toolbar in the view), and the PHP manual. In this case, editplus automatically opens the manual and locates the page of the function you selected. Of course, using shortcuts is a more convenient method. The Shortcut Keys vary with the order of addition, so you can check the menu. Have you seen it? I am crtl + 2

4. Add the PHP debugging function (this is the essence)
Then we add the PHP debugging function through the user tool. Click Tools, configure user tools, and add tools. Click ApplicationProgramSelect php.exe in the pop-up file selection box, and then configure. Remember to draw the capture output below and click output mode for further settings.

In the displayed output mode dialog box, use the default output mode. In the text box of the regular expression, enter the regular expression in the graph and set it accordingly. The regular expression here is the same as the regular expression in PHP to capture the information of the error line and pass the file name and number of lines to editplus. In this way, when we double-click the error message, the error line can be located.

After setting, return to the editing environment and press the shortcut key Ctrl + 1 (you should be different from mine, look at the menu) to see the debugging result below. Remember, double-click the error message to locate the line: (Hahahaha)

5. Use the window breakdown function to write both tests and code.
In TDD, the test is usually written at the same time as the code. We can use editplus to make this process more convenient. Open the test and code file, select the window, arrange the window, and tile vertically. In this way, editplus will combine the two files, so that we can easily switch between the test and code.

6. Use the preview function for testing at any time
Click Tools> parameter settings> select Tools and click Add to locate your file. That is to say, you can automatically map the file path in the web directory to the web path starting with HTTP and pass it to the browser that comes with editplus. In this way, we don't always need to switch between the browser and the editor.

After completing the above configuration, move the cursor to the editing window of the test file. Press Ctrl + B and the editplus will automatically display the corresponding execution page, which is very convenient.

Extension
Do you know what it means?
Can we use him to do many things now?

Editplus settings (download, STX, ACP, debugging ).

After using n php editors, I still think editplus is the best!
1. Download editplus v2.21 build 381 Chinese Version
: Http://www4.skycn.com/soft/3641.html

2. Download the syntax file and the automatic completion file,They end with the suffix STX and AXP respectively. The PHP. ACP file is not available after I download this version.
The PHP. STX file is not up-to-date, So I downloaded the php. ACP file and the latest PHP. STX file from the official website.
STX file: http://www.editplus.com/files/php503.zip

Description: php503.zip (2005-01-08)
PHP 5.0.3 stx-Seung Hwan Kang
ACP document: http://www.editplus.com/files/php12.zip

Description: php12.zip)
Php acp-rasel Khan, old, but I can only find this!

3. Install the php. STX and PHP. ACP files.
My editplus is installed in c: \ Program Files \ editplus 2, so I will copy the downloaded PHP. STX and PHP. ACP files to c: \ Program Files \ editplus 2
Here, PHP. STX will prompt whether to overwrite, point is OK! At this time, the php. STX file is installed. Now load the php. ACP file and open
Editplus, tool-> Parameter Selection-> click "Syntax" on the left side, "php" on the right side, and "syntax Settings" in the lower right corner to find "Automatic completion"
Enter "C: \ Program Files \ editplus 2 \ PHP. ACP" in the Path box!

4. Use editplus to debug the PHP file.
Take my machine as an example. I installed Windows XP + PhP4 (D:/web/PHP) + apache2.0 (D:/web/Apache) + MySQL (D: /web/MySQL)
Open editplus, tool, parameter selection, and click tools on the left. There is a Web server root directory on the right. Click Add to display initialization.
For Web server, enter localhost in "IP address or Host Name of the network server", because I am debugging on the local machine and use the default host name, so
Use localhost and enter D:/PHP in the "network server root directory" below. The default network server root directory of Apache (the directory where you put the PHP file)
It should be in D: \ WEB \ apache \ htdocs, but I changed it to D:/PHP for convenience. This setting can be changed in the PHP. ini file!

The original author is crazy about onions. Yin Qing has made some changes!

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.