I have installed the Better Python Console-Plugin for gedit and I am happy with it when I view python code. But I would like to be able to execute some different languages source codes when I have opened it in gedit.
For example, I would like to run
$ g++ filename.cpp -o filename.out; ./filename.out if I hit F5 while I have opened a C++-file.
If I have opened a PHP-file I don't want to happen anything at all.
Is this possible?