GNOME Bugzilla – Bug 390438
Gedit confuses CSS file with C source because it begins with comment block
Last modified: 2006-12-28 19:06:13 UTC
Please describe the problem: Some of my CSS files begin with block comments: /**/. Gedit sees the comment block and assumes it is a C-source file and not a CSS file. The workaround is to remove block comments from the beginning of the file. This workaround may become more problematic as I'm trying to use doc-block more frequently. Steps to reproduce: 1. Create or open a CSS file. 2. Add a block comment to the beginning of the file followed by some DOM element. 3. Try opening the file in Gedit or examine its type in Nautilus. Actual results: Gedit opens the file with C-source syntax-highlighting. Expected results: Gedit should open the file with CSS syntax-highlighting. Does this happen every time? Yes. Other information:
This problem is not due to gedit itself but to shared-mime-info. I have created a bug report in their bugzilla, see https://bugs.freedesktop.org/show_bug.cgi?id=9469