Back in the olden days, we used to use a great little text editor called Brief, then we used Textpad, now I use great little text editor called Geany - its multi platform, supports regular expressions, colour coding for lots of filetypes, smart indenting, etc. Highly recommend it.
Geany : Home Page
Geany is a text editor using the GTK2 toolkit with basic features of an integrated development environment. It was developed to provide a small and fast IDE, which has only a few dependencies from other packages. It supports many filetypes and has some nice features. For more details see About.