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
2
votes
3 answers

Run nodejs npm package from notepad++ console

I'm trying to run some nodejs apps in Notepad++. I installed NppExec and node works just fine in the console, but npm packages don't run even though I installed them with the -g flag. My current workaround is to call cmd from the console and then…
elclanrs
  • 92,861
  • 21
  • 134
  • 171
2
votes
2 answers

Continuously update Python script in NppExec console [Notepad++]

I write Python scripts with NppExec/Notepad++. How do I update my console window as each line of my Python code is executed? For example, the following timer script: #!usr/bin/env python import time import threading class Timer(threading.Thread): …
prrao
  • 2,656
  • 5
  • 34
  • 39
2
votes
1 answer

NppExec plugin - where to set command line arguments - npp_exec "script name" param_1 "param 2"

NppExec dochelp says: Now the NPP_EXEC command can pass arguments to the script. These arguments can be accessed in the script through the following macro-variables: $(ARGC), $(ARGV), $(ARGV[n]). Example: npp_exec "script name" param_1…
gigaimage
  • 29
  • 5
2
votes
1 answer

ImportError: no module named Tkinter (Running python with NotePad++'s NppExec)

I'm trying to run a python file using Notepad++'s NppExec plugin. My file attempts to import Tkinter using the line "from Tkinter import * ". With NppExec, I run the following script: python "$(FULL_CURRENT_PATH)" or sometimes python -i…
Sam Westrick
  • 1,248
  • 1
  • 7
  • 9
2
votes
1 answer

Python script not terminating properly in Notepad++

I have installed anaconda3 and notepad++, I'm trying to link NppExec, a Notepad++'s plugin so that not only I can run both pure python and other libraries (like matplotlib or numpy). I have found one solution at: Cannot run conda command 'activate'…
Cristian
  • 53
  • 6
2
votes
0 answers

How to use interactive python(like IDLE) inside nppexec console?

After running a script, I would like to give commands in the nppexec console rather than a separate cmd window. So how can I run python in nppexec console? Is it possible?
2
votes
1 answer

Notepad++, NppExec, CreateProcess() failed with error code 2, Windows 8.1

I'm new to Notepad++ and C++ programming language. I couldn't figure out what has gone wrong, albeit, it might look simple to resolved to many. Tried to search for solution, but to no avail. While trying to config the application for C++ compiler…
Edwin
  • 33
  • 1
  • 1
  • 6
2
votes
1 answer

How to execute with NppExec Plugin the leftmost tab opened? (ConTeXt in Npp)

Question is in title: I have many opened files in Npp, and want to compile only the leftmost one by Alt+F6 (NppExec-Plugin), I am compiling tex-files with ConTeXt. At the moment my commands are: cd $(CURRENT_DIRECTORY) taskkill /im…
Mustafa
  • 133
  • 3
  • 9
2
votes
2 answers

No Output in NPPExec with Pascal

I want to write and build and execute a Pascal Program in Notepad ++. If i execute the program in cmd the output is normal, but in the console in nppexec the output is empty My Code: Program Edgar; Uses Crt; Var cnt, tip, pot : INTEGER; Begin …
user547995
  • 2,036
  • 8
  • 33
  • 62
2
votes
1 answer

Getting perldoc to work in notepad++ and NppExec

I am immersing myself into the world of Perl for the first time. I figured the easiest way was to integrate using notepad++, which is my preferred editor. I went ahead and installed the ActiveState self extracting installer. I then pointed NppExec…
pacman326
  • 35
  • 1
  • 7
2
votes
0 answers

Prompt message in Notepad++

I started using Notepad++ 5.1. with NppExec 0.4.3.2 Unicode plugin. I need it for practicing python. What I noticed is that NppExec (or even Notepad) itself is a bit buggy. For some reason, this code: word = raw_input("type something") print…
stgeorge
  • 483
  • 3
  • 7
  • 16
2
votes
0 answers

How to properly close a process with NppExec?

I'm not sure what's going on here, but the following code continues running even after I end the process in the NppExec console with Ctrl-C (during the execution of the while loop). I restarted my computer to stop the Ctrl key sends. However, if I…
SamCode
  • 86
  • 1
  • 12
2
votes
2 answers

how to let notepad++ console outputs be colorful

how to let notepad++ console outputs be colorful for example: I run some nppexec script and output text like this in console [resource] => Resource id #574 [cursor] => 2 [EOF] => 1 [fields] => Array the outputs are all black.but I want to let [...]…
linjuming
  • 2,117
  • 4
  • 23
  • 32
1
vote
1 answer

NPPExec script failing with CreateProcess() failed with error code 2:

I have the following command in NPPExec: NPP_SAVE npp_exec "C:\bin\foo.sh" Where foo.sh contains the following: #! /bin/bash echo "This is a test script" This is the output from the NPPExec console: NPP_SAVE: C:\bin\foo.sh NPP_EXEC:…
Validatorian
  • 73
  • 1
  • 2
  • 8
1
vote
0 answers

NppExec console output to CMD window

I have just started using Notepad++ for writing, compiling and running simple java programs. I found nppexec very quickly, and I'm currently using this script to compile and run: cd $(CURRENT_DIRECTORY) javac $(FILE_NAME) java $(NAME_PART) However…
matrucious
  • 33
  • 1
  • 6