Hello. I have just got Notepad++ and I am impressed.
I want to set it up so that it will perform an action, when a shortcut is pressed, depending upon the type of file that is opened.
For example.
A compile shortcut say: ctrl+alt+c
An execute shortcut say: ctrl+alt+e
When programming java and I press ctrl+alt+c I would want it to perform javac currentfile.java, where as if it was C++ code I would want it to perform gccp currentfile.cpp (or whateve it is), or if its C code then cc currentfile.c, and so on.
after I have compiled the file i would want to press ctrl+alt+e and have the file executed so in java do the following command java currentfile, for cpp just the following command currentfile.exe and for c currentfile.exe. Also it would be nice so when I do this with any other file that has an associated default viewer, like HTML opens in firefox for example, it wilkl open in that.
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello. I have just got Notepad++ and I am impressed.
I want to set it up so that it will perform an action, when a shortcut is pressed, depending upon the type of file that is opened.
For example.
A compile shortcut say: ctrl+alt+c
An execute shortcut say: ctrl+alt+e
When programming java and I press ctrl+alt+c I would want it to perform javac currentfile.java, where as if it was C++ code I would want it to perform gccp currentfile.cpp (or whateve it is), or if its C code then cc currentfile.c, and so on.
after I have compiled the file i would want to press ctrl+alt+e and have the file executed so in java do the following command java currentfile, for cpp just the following command currentfile.exe and for c currentfile.exe. Also it would be nice so when I do this with any other file that has an associated default viewer, like HTML opens in firefox for example, it wilkl open in that.
Thanks