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
1
vote
1 answer

NppExec custom shortcuts not working

I decided to use NppExec to run my Python files from notepad++, however I encountered a problem. I created a simple script with one line: python -i $(FULL_CURRENT_PATH) and added the script to the "Menu items" in nppExec advanced options. The…
5xum
  • 5,250
  • 8
  • 36
  • 56
1
vote
1 answer

Notepad++: Execution without restarting pdf-reader Sumatra

I compile ConTeXt out of NP++ with the following command in the Execution-Plugin: cd $(CURRENT_DIRECTORY) context.exe "filename.tex" --synctex=1 taskkill /im SumatraPDF.exe C:\somedirectory\sumatra.bat "$(CURRENT_DIRECTORY)\filename.pdf" This…
Mustafa
  • 133
  • 3
  • 9
1
vote
1 answer

Python Beginner: ImportError when run from NP++ but not IDLE

I am using Python 3.3 (2.7 is also installed) and a compatible version of pygame. Recently I have been trying to switch from IDLE to Notepad++ I am using a saved shortcut in Notepad++ C:\Python33\python.bat "$(CURRENT_DIRECTORY)"…
Age
  • 11
  • 3
1
vote
1 answer

Notepad++: Script to send input to running program?

I compile and run many .c files in notepad++ using this code NPP_SAVE g++.exe -g "$(FULL_CURRENT_PATH)" a Now what I want is that each time after compilation and running, an input is also sent to the program. Something like below NPP_SAVE g++.exe…
SMUsamaShah
  • 7,677
  • 22
  • 88
  • 131
1
vote
1 answer

Re-using NppExec's console in developing a separate plugin for Notepad++ -- can it be done?

I am going to create my own plugin for notepad++. It is necessary to use a console in my plugin but I don't want create another one because there is one in the NppExec plugin. So my question is can I use NppExec console from my own plugin ?
Eugene Gluhotorenko
  • 3,094
  • 2
  • 33
  • 52
0
votes
1 answer

How can I make NppExec open a different file when clicking on console output?

I'm using Notepad++ and the NppExec plugin as a lightweight IDE for PHP. I've added a console output filter for NppExec "%ABSFILE% on line %LINE%". When I get an error, I can double-click on it -- but it only navigates to the specified line in the…
yoyo
  • 8,310
  • 4
  • 56
  • 50
0
votes
1 answer

Is there a way to make NppExec run another script in the same console instance?

I'm trying to make a script that will compile C++ code using cl. Currently, I have to run vcvarsall.bat every time I run the script, because running another script seems to totally reset the NppExec console. That wastes time re-initializing the…
0
votes
0 answers

Cannot find module 'internal/modules/cjs/loader :1093

After running the Java script code in Notepad++, I am facing the following error. How to solve it? NPP_EXEC: "node" CD: $ (CURRENT_DIRECTORY) Current directory: E:\ node $ (FILE_NAME) Process started (PID=4064)…
0
votes
1 answer

How to launch Git Bash inside the NppExec Console

The NppExec Console supports running the Windows command shell within the console by simply running cmd within the console. Is there a way to launch Git Bash inside the NppExec Console?
Jim Fell
  • 13,750
  • 36
  • 127
  • 202
0
votes
1 answer

Notepad++ NppExec console warning, need explanation "C++"

I've tried using Notepad++ to code c++ and followed a few tutorials on youtube, here's what I did: -Installed gcc/g++ compiler using mingw64 -Installed NppExec plugin on N++ -Typed in the following compilier script and saved as C++: NPP_SAVE cd …
Khaled
  • 1
  • 3
0
votes
2 answers

notepad++ how to run curl requests?

I was wondering if there is any way i could run curl in notepad++ I came across http://net.tutsplus.com/articles/news/cross-browser-css-in-seconds-with-prefixr/ where it shows how to run http://prefixr.com/ in a terminal Any ideas? Thanks
Patrioticcow
  • 26,422
  • 75
  • 217
  • 337
0
votes
2 answers

MinGw doesn't execute the program if file name has spaces

So I use notepad++'s NppExec to directly compile and execute C++ files. npp_save cd "$(CURRENT_DIRECTORY)" g++ "$(FILE_NAME)" -o $(NAME_PART) -march=native -O3 NPP_RUN $(NAME_PART) This all works fine, now assuming I have this piece of…
Elytra
  • 55
  • 1
  • 6
0
votes
1 answer

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

Hi I'm new to C Programming and Notepad++. I can't seem to find the solution to this problem when I was configuring C compiler for Windows 10. NPP_SAVE: C:\Program Files\Notepad++\change.log CD: C:\Program Files\Notepad++ Current directory:…
lee lee
  • 11
  • 1
0
votes
2 answers

NppExec SqlPlus how to check for errors?

I'm running Notepad++ with NppExec plugin. When I press F6 i enter a script that connects to my database set ORA_USER=USER set ORA_PASS=password set ORA_SID= DBSID npp_save cmd /c copy /y "$(CURRENT_DIRECTORY)\$(FILE_NAME)"…
Tom
  • 302
  • 2
  • 5
  • 14
0
votes
0 answers

I am getting Error Code 2 when compiling C Program using Notepad++

Using instructions I found on stackoverflow I am trying to use NppExec to compile my C files, run them, and show their output, all within Notepad++. However when I try to use it I get this error message (see below) in Console. Does anyone know how I…
Retreever
  • 23
  • 5