Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|improve this question
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

1 Answer 1

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.
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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