Notepad++, Run command and open output in new tab

Solution 1:

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.

Solution 2:

For more flexible, you can install the NppExec plugin. The easiest way to install it is through the built-in Plugin Manager:

  1. Select Plugins / Plugin Manager / Show Plugin Manager
  2. Put a checkmark next to NppExec
  3. Click Install

After that, the fun begins. This tutorial is a good starting point on how to use this powerful plugin: https://micksmix.wordpress.com/2009/09/24/format-your-perl-scripts-using-perltidy-and-notepad/

It should work with any command-line utility that outputs text to the console.