How to configure php in notepad?
Notepad is a simple and commonly used editor. Its functions can be extended by installing plug-ins, such as running PHP
Recommended: "notepad usage tutorial"
1 Install notepad, the official download address of notepad is http://notepad-plus-plus.org/ or enter the resource download
The installation is very simple, select the default settings and click the next step. You can choose the installation path. After the installation is completed, you can see the Chinese interface of Notepad
2 Create a new php document with the following content. Output "Hello World".
<?php echo "Hello World!<br>"; ?>
3 Install the plug-in that compiles and runs the file. Plugin-Plugin Manager-Show Plugin Manager.
4 Find the NppExec plug-in. Judging from the name of this plug-in, it is the execution of your files. Click Install. It needs to be downloaded and installed. If it fails, it may be because the network is not good. Just try again a few times.
5 Restart Notepad to complete the plug-in installation. Plug-in-NppExec-Execute, click to execute, or directly press F6
6 Enter the command in the pop-up command input window:
cd $(CURRENT_DIRECTORY) D:\phpStudy4IIS\php52\php.exe $(FULL_CURRENT_PATH)
The meaning of the command Yes, go to the current file directory and use the installed php.exe file to run the file.
D:\phpStudy4IIS\php52\php.exe is the installation path of php.
7 After clicking OK, run the php file
The above is the detailed content of How to configure php in notepad. For more information, please follow other related articles on the PHP Chinese website!