GNOME Bugzilla – Bug 413920
syntax highlighing broken
Last modified: 2009-08-15 18:40:50 UTC
In current meld (1.1.4), syntax highlighting is broken, because the statically defined mime types are wrong. For example, the source uses text/x-c and the expected type is text/x-csrc; this means that C source isn't highlighted. I've tested using gnomevfs to get mime type, and it works fine. Attached is a patch to use gnomevfs to get mime types.
Created attachment 83738 [details] [review] Patch to use gnomevfs for mime-type detection
THUMBS UP! Lack of syntax highlighting in Meld has been the only disappointment from my upgrade from Ubuntu edgy to Ubuntu feisty. I've downloaded and installed pygtksourceview which seems to be missing at Ubuntu feisty but it did not help enough. Then I saw this bug and patch. I can state that in Ubuntu feisty after installing pygtksourceview the .py files are highlighted but .C, .h and Makefiles do not. I've applied the patch to the sources, removed the ubuntu package and installed this modified version (thanks to checkinstall) and I can state it works just fine. Thank You very much, Daniel.
Thanks, applied in SVN
Close old resolved bugs.