Printing from NppExec buffer?
In the past, I’ve used emacs to print transcripts from a buffer for coursework, but I was wondering if Notepad++ has a similar feature available with NppExec? I love Notepad++ and I think it’s way better, especially with plugins. If I can print from the buffer, it’d be perfect! I’ve looked elsewhere, but I haven’t been able to find a way. Thanks so much!
what means buffer in this context? Current (not saved) document?
Yes, sorry. By buffer, I meant the output of the console area in NppExec. I can’t find any way of saving or printing it. Whenever I try anything, it always operates on the main file, not on the console output.
Open the nppexec console and type help press enter.
Then you get the full list of supported commands.
For your question,
make sure no internal messages has been checked in nppexec menu
and do something like this
cd c:\python cls python "$(FULL_CURRENT_PATH)" CON_SAVETO C:\test6734.txt
This would save the output of the current python program to a file C:\test6734.txt
which then can be printed out regarding to your needs. For example by using
npp_open <file> to load the file and using npp_menucommand <menu\item\name>
to print it or using the print command from the cmd shell to do so. …