If Gedit doesn't quite do all you want then there's Kate ( KDE
Advanced Text Editor ) which has all the bells and whistles any text
editing program may wish for <lol> If not running Kubuntu then you'll
be asked to add a lot of the KDE runtime packages, not a problem and
won't get in the way or want you to switch to the KDE desktop :-)