Notepad++, Run command and open output in new tab
Solution 1:
If your program outputs plain text and you can run batch files...
-
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).
In Notepad++, select Run > Run... and browse for your batch file.
- 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:
- Select Plugins / Plugin Manager / Show Plugin Manager
- Put a checkmark next to NppExec
- 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.