GtkSourceView is a nice library for syntax highlighting and source code editing. It's used in several Gnome editors like gedit and Anjuta and is in active development; it also has a very permissive LGPL license which permits its use in commercial products.
There is also a C++ wrapper called gtksourceviewmm.
http://projects.gnome.org/gtksourceview/