Notepad ++ using the Run command in a macro

Is it possible to create a macro in Notepad ++ that can use the Run command so that I can call an external .exe to work with the specified file? I can do it manually, but when I create a macro that includes a run (F5) and gives it the specified command, it fails. Is this because the start command is not supported when creating macros? If so, is there a workaround?

thanks

edit: add context. I have written several ruby ​​scripts to facilitate the input of data that are executed using notepad ++, and would like to combine them with an editor. Running them using the shortcut method created by writing a macro seems to be the best way to do this if you cannot use the run command.

+7
source share
4 answers

You can do this with the NppExec plugin (available in the Notepad ++ wiki ). It allows you to create mini scripts with keywords that execute commands.

You can also add your script to the context menu (right-click) or assign a shortcut to it.

I personally use it to save the sql file, place myself in the current directory and then execute isql.exe (external executable file) in this file. This simple script turns my Notepad ++ into a pretty handy SQL IDE.

+2
source

FWIW Zeus and Editors Zeus Lite can do this.

+3
source

I do not think you are doing this using only Notepad ++.

Please review this topic: http://sourceforge.net/projects/notepad-plus/forums/forum/331754/topic/4805532

0
source

If I understand you correctly, everything is set up for you, but you have problems launching it using the Notepad ++ launch command? If so, try what I mentioned here .

I had similar problems starting the php compiler and resolved it with the addition of "cmd / c", as in this example. And a β€œpause” at the end, so I see what happens.

0
source

All Articles