Questions tagged [nppexec]

NppExec is a console plugin for Notepad++ that allows you to run scripts and some built-in commands.

NppExec is a console plugin for the text-editor Notepad++ that allows you to run scripts and some built-in commands.

Most Run commands have been implemented as scripts. Built-in variables can be used to enable more complicated, program-specific tasks such as compiling code.

NppExec scripts can be assigned to menu items and keyboard shortcuts.

90 questions
43
votes
11 answers

How to compile and run C files from within Notepad++ using NppExec plugin?

How can I configure the NppExec plugin for Notepad++? I would like NppExec to compile my C files, run them, and show their output, all within Notepad++.
Chris Smullian
  • 2,237
  • 4
  • 18
  • 8
39
votes
6 answers

How do you run a python script from within notepad++?

When I'm using textmate, I simply hit "apple+r" and the program gets interpreted. How can I run a program from within notepad++? I see that F5 is for "Run", but pointing that to Python.exe simply opens up a terminal with python running. It does…
Chad
  • 401
  • 1
  • 4
  • 4
12
votes
1 answer

Set up Notepad++ and NppExec to print unicode characters from python

I have an utf-8 encoded file cjk.py: print("打印") Unsurprisingly, running python cjk.py yields Traceback (most recent call last): File "cjk.py", line 1, in print('\u6253\u5370') File "C:\Python33\lib\encodings\cp850.py", line 19, in…
Clément
  • 12,299
  • 15
  • 75
  • 115
6
votes
2 answers

Getting NppExec to understand path of the current file in Notepad++ (for Python scripts)

Using windows for the first time in quite awhile and have picked up notepad++ and am using the nppexec plugin to run python scripts. However, I noticed that notepad++ doesn't pick up the directory that my script is saved in. For example, I place…
jlv
  • 617
  • 8
  • 13
5
votes
5 answers

How to compile/execute C++ code from within Notepad++

I was reading http://daleswanson.blogspot.com/2012/07/how-to-compile-c-code-in-notepad-with.html and decided to try that, so that I can continue to write code in Notepad++ and have a shorter compile/run cycle. When I tried to enter compilation/run…
KJ6BWB
  • 751
  • 2
  • 6
  • 10
5
votes
1 answer

Notepad++ NppExec run in cmd

How can I make my commands run in NppExec run in cmd, as opposed to the built in console, which doesn't work with things like: "Press any key to continue", which only works when you press enter?
Josh Wood
  • 1,598
  • 3
  • 16
  • 21
4
votes
1 answer

F6 shortcut for NppExec not working anymore in Notepad++

I can't seem to get F6 to work anymore to pull up the Execute in Notepad++'s NPPExec function. It was working fine until two days ago. None of the other function keys work to pull up Execute either. Any ideas what happened? Thanks.
MikeRand
  • 4,788
  • 9
  • 41
  • 70
3
votes
1 answer

8086 masm, how to skip entering object filename, source listing, etc and to directly execute asm file in DOSBox using Notepad++

I am using DOSBox to run masm.exe. When every time I compile and link my source file and object file, it is very annoying to keep pressing "Enter" key just to skip entering object filename, source listing, cross-reference, etc. My friend once taught…
wei
  • 937
  • 2
  • 14
  • 34
3
votes
3 answers

NppExec - Command unkown to NppExec, Environment variable is set

I am trying to execute a small perl6 script via Notepad++ and NppExec. My system is Windows 10 and i set the PATH variable properly to C:\rakudo\bin where the perl6 executable is. When i am executing the script via normal console with: perl6…
Plus Ultra
  • 1,112
  • 1
  • 9
  • 19
3
votes
1 answer

NppExec in Notepad++ Not Recompiling My C# Code

I seem to be having an issue with the NppExec plugin for Notepad++. I'm new to coding in the Windows environment, so it's conceivable I'm missing something fairly obvious. A few days ago, I got the NppExec plugin to work on Notepad++. In the NppExec…
daOnlyBG
  • 595
  • 4
  • 20
  • 49
3
votes
1 answer

Compiling C# with csc.exe from within Notepad++ using NPPExec script

I'm having trouble writing a NPPExec script (for Notepad++) to compile C# source using Microsoft's csc.exe. I had no problem getting MinGW up and running for my c++ stuff, but the same script structure doesn't seem to work for C#. Does anybody have…
MikeRand
  • 4,788
  • 9
  • 41
  • 70
3
votes
5 answers

Java compile and run using notepad++ and nppexec

Please keep in mind that compiling in the windows shell works, so there is little (if not zero) possibility of this issue being a PATH issue. I have spent a lot of time research how to do this, and all the results I found online say that you can…
SgtPooki
  • 11,012
  • 5
  • 37
  • 46
3
votes
2 answers

how to run php file with parameter using notepad++

How to run php file with parameter using notepad++ test.php demo_file.php…
linjuming
  • 2,117
  • 4
  • 23
  • 32
3
votes
4 answers

Running a bash shell script on Windows from within in Notepad++ using NppExec (and Cygwin)

I'm trying to reconstruct how to execute a bash shell .sh file on my Windows machine from within Notepad++ using NPPExec. (I've done this successfully before, but my HDD crashed and I don't recall how I did it previously.) When it was working…
Validatorian
  • 73
  • 1
  • 2
  • 8
3
votes
2 answers

Buffered versus unbuffered output for Python in Windows

I use NppExec/Notepad++ to run Python scripts, and flush my output buffers continuously during runtime to update my console window with print statements (The default buffered output only shows all print statements after the script finishes…
prrao
  • 2,656
  • 5
  • 34
  • 39
1
2 3 4 5 6