Skip to content

Instantly share code, notes, and snippets.

@bcetin
Created June 16, 2018 15:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bcetin/11e902d494049e63e8105d6bbded82f6 to your computer and use it in GitHub Desktop.
Save bcetin/11e902d494049e63e8105d6bbded82f6 to your computer and use it in GitHub Desktop.
Nppexec command that makes the terminal stay up for you to see the output for notepad++. I added simple stuff to the snippet from this tutorial. http://daleswanson.blogspot.com/2012/07/how-to-compile-c-code-in-notepad-with.html
npp_save
cd "$(CURRENT_DIRECTORY)"
g++ "$(FILE_NAME)" -o $(NAME_PART) -march=native -O3
npp_run cmd.exe /k "$(NAME_PART)" & pause & exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment