Is there any way to execute a command from notepad++ and have the results piped back into the program in a new tab?

link|improve this question

60% accept rate
2  
AFAIK, this can be done with a plugin - whether or not said plugin exists already is an entirely different matter. – Breakthrough Sep 8 '11 at 16:25
feedback

1 Answer

up vote 0 down vote accepted

If your program outputs plain text and you can run batch files...

  1. Create a batch file (e.g. dir.bat) which pipes the results of your command to a temporary file, then opens the file in Notepad++ e.g.

    dir > tmp
    "C:\path_to_notepad_plus_plus\notepad++" tmp
    

    (replace dir with your command and add an extension to tmp to syntax-highlight it appropriately).

  2. In Notepad++, select Run > Run... and browse for your batch file.

  3. If you use it often, consider saving it as a macro (Run > Run... > Save...) which you can access with a keyboard shortcut or under the Run menu.
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.