
Notepad++ is a great text editor for Windows that you can integrate many compilers inside. Now, I would like to share how to configure Notepad++ to run Nodejs code.
Nodejs
You could download and install Nodejs for Windows OS at http://www.nodejs.org . Just follow the installation instructions.
Configure Nodejs In Notepad++
Firstly, you must install NppExec plugin. You do it with clicking menu: Plugins->Plugin Manager->Show Plugin Manager. On Available tab, install NppExec plugin. If success, you should it on Installed tab, see picture below

Click Close button to close this dialog.
Now, you configure NppExec plugin. Click menu Plugins->NppExec and do
- unchecked Console Command History
- checked Save all files on execute
- checked Follow $(CURRENT_DIRECTORY)

Then, click Execute and you’ll see a dialog as below

Write this script inside edittor
cd "$(CURRENT_DIRECTORY"
node $(FILE_NAME)
Click Save button and save as Run

Now, you should configure for menu shortcut. Click menu Plugins->NppExec –>Advanced Options

Checked Place to the Macros submenu. Choice Run on Associated script and write Run Nodejs. Then click Add/Modify button. Close this dialog by clicking OK button.
Then, you configure Macro shortcut menus. Click Settings –> Short Mapper …

Click Plugin commands. Find Run Nodejs in Name column. Click Modify button

For instance, shortcut for Run Nodejs is CTRL+F5.
Now you should see your Run Nodejs menu under Macro as below

Testing
Write simple Nodejs code here
console.log('welcome to my nodejs');
To run this code, click menu Macros –> Run Nodejs or your shortcut key (for example: CTRL+F5). Then you should the result as below
