How do you run a code in Notepad++ ? | SoloLearn: Learn to code for FREE!

+18

How do you run a code in Notepad++ ?

61 Answers

New Answer

+21

make a batch file -file.bat in that file enter the command you want to run For c++ -g++ main.cpp For python -python main.py etc.

+18

Read through the discussions, some peeps talks bout pressing F5 or sumert. It's 2019 tho, i'd suggest you move on to VSCode

+9

Your question is posted twice. https://www.quora.com/How-can-I-run-my-code-written-in-Notepad++

+8

Golooba Zubairi You are also beautiful. But don't do comments anything like this anywhere. You may get ban. You are here to learn. So do that only.

+5

+5

Hari pro Satish Rajak Mallikarjun Reddy Don't ask any question in others question. Noone is going to entertain you.

+5

you are so beautiful This is a Question and Answer Forum. This "answer" does nt correspond to my question😡😡😠😠😠😠

+4

Sorry, Mirielle but this is providing an answer for "Notepad" not "Notepad++" Thanks anyway

+4

+4

+4

click the three dots and select your bat file

+4

+4

Save it .html, .css, and .js and it will work

+3

you can use the nppexec plugin which is a "cmd" in notepad++ or run a custom batch file (F5 or Run on the menu bar)

+3

Used the "run" bar but told me to enter a program to execute the code and not sure how to do that🙁

+3

The code isn't here it is on my computer

+3

Save it with .html as the type for HTML , .php for PHP, .js for Javascript and .css for CSS

+3

Just download notepad++ in ur pc from website and install it and then open it do code and save file with at its extension and run as its usual manner.

+3

For JavaScript, how I do it is that I integrate it into my html code, then run. You have to save the JavaScript separate from the html with .js. Then you use it as a link to the html code. Then you press F5 on your PC, then it brings out a Dropbox. then you select the code you have saved, then run it 😊😊

+3

I recommend Sublime Text 3, but that isn't what you asked. Ctrl-Alt-Shift-R Open in Chrome Ctrl-Alt-Shift-X Open in Firefox Ctrl-Alt-Shift-I Open in IE Ctrl-Alt-Shift-F Open in Safari