Re: editor with syntax highlighting for GTK+/GNOME API



On Wed Jun 27, 2001 at 09:20:42PM +0200, Sven Neumann wrote:
 
>  (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.

Indeed; there's an OpenGL mode for emacs that goes a step further, and has
built in completion for functions, knows about their args etc.

Something like that would certainly be nice for GTK+ (probably best with
separate glib.el, gtk.el and gnome.el), but would be a *lot* of work. Well,
at least we can use tags.

--Dirk-Jan. 





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]