Notepad Plus Plus for PHP Development

Notepad Plus Plus (Notepad++)

Notepad Plus Plus is one of the most popular open source code editor currently available. Notepad Plus Plus is free for use and can be downloaded from Notepad Plus Plus is a very simple editor and is very helpful in webdevelopment. It has plenty of features like syntax highlighting and syntax folding, auto-completion, zoom in and zoom out, multi-language environment support, macro recording and playback etc.


Notepad Plus Plus for PHP Development

Notepad Plus Plus can be used in the development of PHP web applications. First open Notepad Plus Plus and from the menu select Language->P->PHP. This will help to generte auto completion for PHP coding. Please see the below image for example.

Notepad Plus Plus

Next we will write a simple progam to print numbers from 1 to 10.






echo $i." ";



Notepad Plus Plus


Suggested read : NetBeans for PHP Development


Next we will install the DBGP plugin for Notepad Plus Plus. First you can download the latest version of the plugin from After downloading the file you can unzip it and copy the “dbgpPlugin.dll” file into the plugins folder of the Notepad Plus Plus installation. In my case it is located at C:\Program Files\Notepad++\plugins. After that you can open Notepad Plus Plus and select from the menu Plugins->DBGp->Config. You will see the below window.

Notepad Plus Plus

Notepad Plus Plus

Enter the following details

Remote Server IP:

IDE Key : xdebug

Remote Path: E:/wamp/www

Local Path: E:/wamp/www


Check “Refresh local context on every step” and “Refresh global context on every step”. The path depends on the wamp server installation folder.Next enable xdebug on wamp server. You can copy the below code into php.ini to enable xdebug in wamp server.


; XDEBUG Extension   
zend_extension = "H:/wamp/bin/php/php5.5.12/zend_ext/php_xdebug-2.2.5-5.5-vc11.dll" ; 


You will have to change the path according to the wamp server installation. After that restart wamp server. Now select Plugins->DBGp->Debugger from the menu in Notepad Plus Plus. You will see the debugger tab in the bottom as seen in the below image.

Notepad Plus Plus

You can see the buttons for “Step Into, Step Over, Step Out and Breakpoint. Now we can start debugging by adding “?XDEBUG_SESSION_START=your_session_name” at end of url. So in our case url becomes http://localhost/test/test.php?XDEBUG_SESSION_START=your_session_name where “your_session_name” can have any value.

Notepad Plus Plus