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 390438 - Gedit confuses CSS file with C source because it begins with comment block
Gedit confuses CSS file with C source because it begins with comment block
Status: RESOLVED NOTGNOME
Product: gedit
Classification: Applications
Component: general
2.16.x
Other All
: Normal minor
: ---
Assigned To: Gedit maintainers
Gedit maintainers
Depends on:
Blocks:
 
 
Reported: 2006-12-28 18:55 UTC by prrogers
Modified: 2006-12-28 19:06 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16



Description prrogers 2006-12-28 18:55:25 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:
Comment 1 Paolo Maggi 2006-12-28 19:06:13 UTC
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