Re: editor with syntax highlighting for GTK+/GNOME API
- From: Sven Neumann <sven gimp org>
- To: "John Golubenko" <golubenkoj columbiafunds com>
- Cc: gtk-list gnome org, gtk-devel-list gnome org
- Subject: Re: editor with syntax highlighting for GTK+/GNOME API
- Date: 27 Jun 2001 21:20:42 +0200
Hi,
"John Golubenko" <golubenkoj columbiafunds com> writes:
> Emacs doesn't do it either. Of course I can modify the sources to make it
> work, but it's another story.
you don't need to modify any source. Just add a few lines to your .emacs.
Something like:
(custom-set-variables
'(c-font-lock-extra-types (quote ("gint" "gfloat" "gchar"
"gint8" "gint16" "gint32" "guint" "guint8" "guint16"
"guint32" "guchar" "glong" "gboolean" "gshort" "gushort"
"gulong" "gdouble" "gldouble" "gpointer" "G_\\w+"
"GList" "GSList" "GFunc" "GPOINTER_\\w+" "GINT_\\w+" "GUINT_\\w+"
"Gtk\\w+" "Gdk\\w+" "GTK\\w+" "GDK\\w+" "NULL"
"Gimp\\w+" "GIMP\\w+"
"FT_\\w+"
"Pango\\w+" "PANGO\\w+"
"->" "FALSE" "TRUE" "FILE" "MIN" "MAX" "CLAMP" "ABS" "DIR" "\\sw+_t"
"GCim\\w+")))
You will want to modify/extend this list a bit and I'm sure there are
better ways to do this, but this one works reasonably well.
Salut, Sven
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]