After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 413920 - syntax highlighing broken
syntax highlighing broken
Status: VERIFIED FIXED
Product: meld
Classification: Other
Component: filediff
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Stephen Kennedy
Stephen Kennedy
Depends on:
Blocks:
 
 
Reported: 2007-03-02 17:06 UTC by Daniel Gryniewicz
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to use gnomevfs for mime-type detection (1.78 KB, patch)
2007-03-02 17:07 UTC, Daniel Gryniewicz
none Details | Review

Description Daniel Gryniewicz 2007-03-02 17:06:39 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.
Comment 1 Daniel Gryniewicz 2007-03-02 17:07:35 UTC
Created attachment 83738 [details] [review]
Patch to use gnomevfs for mime-type detection
Comment 2 Guillem Pastor 2007-04-25 13:50:54 UTC
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.
Comment 3 Stephen Kennedy 2007-05-26 17:50:24 UTC
Thanks, applied in SVN
Comment 4 Stephen Kennedy 2007-08-13 20:52:16 UTC
Close old resolved bugs.