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++.
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++.
In windows if you are using a portable version of MinGW you must set path variable or you have error libintl-8.dll not found. My path is C:\Program Files (x86)\CodeBlocks\MinGW\bin
I've written just this to execute compiling and run the file after, plus fileinputname = fileoutputname on windowsmashines, if your compilerpath is registred in the windows PATH-var:
should work for any compiler if you change c++.exe to what you want
Here is the code for compling and running java source code: - Open Notepadd++ - Hit F6 - Paste this code
The Java Classpath variable has to be set for this...
Another useful site: http://www.scribd.com/doc/52238931/Notepad-Tutorial-Compile-and-Run-Java-Program
I've made a single powerfull script that will:
-Compile and run multi language code like
C
,C++
,Java
,Python
andC#
.-Delete the old executable before compiling code.
-Only run the code if it's compiled successfully.
I've also made a very noob friendly tutorial Transform Notepad++ to Powerful Multi Languages IDE which contains some additional scripts like to only run or Compile the code, run code inside CMD etc.
Here's a procedure for perl, just adapt it for C. Hope it helps.
npp_save
<-- Saves the current documentCD $(CURRENT_DIRECTORY)
<-- Moves to the current directoryperl.exe -c -w "$(FILE_NAME)"
<-- executes the command perl.exe -c -w , example: perl.exe -c -w test.pl (-c = compile -w = warnings)Decompile with CMD:
If those didn't work try this:
It should save where you got the file (Example: If I got file from Desktop, it will be saved as .exe on the Desktop)
I don't know if it works on 64 bits though so you can try it!