[MonoDevelop] About MIME types

Federico Di Gregorio fog at initd.org
Tue Oct 12 03:24:51 EDT 2010


On 11/10/2010 23:31, Michael Hutchinson wrote:
>> 2) It is file to send a patch that adds the correct MIME type to make
>> >   sure the editor highlighting always work?
> AFAICT text/css is correct, text/x-css is wrong. Instead of adding
> text/x-css to the list of mimetypes supported by the syntax
> definition, the correct fix would be to register text/css in MD as the
> mimetype for the .css extension, which should prevent MD from querying
> GNOME APIs (and also make it work on Mac and Windows).

Maybe I didn't explain it correctly. Currently the syntax definition
lists text/x-css only (and does not work on my system where Gnome never
reports text/x-css). IMHO the correct fix would be to replace it with
text/css. A safer approach would be to just add text/css to the syntax
definition leaving text/x-css as a fallback for broken systems.

The patch is trivial but I can post it to bugzilla if necessary.

federico

-- 
Federico Di Gregorio                                       fog at initd.org
                   Ma chi sei?....-il trafficante di Nutella? -- Giorgia

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
Url : http://lists.ximian.com/pipermail/monodevelop-list/attachments/20101012/04528d44/attachment-0001.bin 


More information about the Monodevelop-list mailing list