GNOME Bugzilla – Bug 345374
RFE: Recorder source view should use syntax highlighting if available
Last modified: 2006-10-10 21:05:16 UTC
GtkSourceView is widely available (via GEdit) and has Python bindings. For example, in Fedora, they're in the gnome-python2-gtksourceview package. This can be used to get syntax-highlighting and various other nice code-display features easily. The recorder could determine at run-time if the module was available, and use it if was, falling back to a standard GtkTextView if not available.
Created attachment 67667 [details] [review] Patch to use GtkSourceView if it is available
I went ahead and committed the patch (with ChangeLog entry)
This stopped working, looks like this commit removed it: http://cvs.gnome.org/viewcvs/dogtail/recorder/dogtail-recorder?r1=1.17&r2=1.18 I'm attaching a reworked patch against HEAD that reenables it
Created attachment 74272 [details] [review] Re-enables syntax highlighting, for where gtksourceview is available
Oh, that's weird. I depend on CVS not letting me commit against stale versions of a file. Thanks for fixing it up.