Gedit is a good text editor and it can embed terminal window in it. Here is the instructions how to do this:
sudo apt-get install gedit-plugins
The first command will install the gedit embed terminal window plugin. This is a single window terminal. If you’re expecting a multi-window terminal, do the next steps;
The last 2 commands are installing a multi-window terminal plugin for gedit;
After finishing the step(s), restart your gedit and have a try(press the shotcut keys “Ctrl+F9” to open the terminal window).