If you are not using Gnome then you are probably looking for a good Gedit replacement. Have a look at medit text editor! I’m using xfce4 desktop manager and without gnome, gedit (GNOME text editor) doesn’t display correctly. In fact it’s pretty ugly. Simply remove gedit and replace with medit (pictured below). Also check out Sublime Text as a good alternative.
For Arch Linux simply do: pacman -R gedit then pacman -S medit