On Sat, Jul 29, 2006 at 03:53:48PM +0200, Loïc Minier wrote: > Could you tell me what the MIME type of OCaml files is? I couldn't > find it in Google, and the tools I tried reported text/plain. There is no official MIME type assigned to OCaml, as there is no similar type for java, python, or whatever programming language. I don't have memory of other OCaml application which had the need of such a mime type, so I can't suggest you some "best practice". However, looking at my /etc/mime.types it seems like other programming languages have adopted one of the two conventions: 1) x-<language>, e.g.: x-java, x-python, x-sh, ... It would become "x-ocaml" for us 2) x-<language><filetype>, e.g.: x-c++hdr, x-c++src It would become "x-ocaml-intf" and "x-ocaml-impl" or similar for us The second convention seems not to be very widespread; in fact only c++ seems to adopt it. I would go for the first one. It would be better to raise this issue on the OCaml mailing list if you are going to use this convention for anything serious or somehow official. Cheers. -- Stefano Zacchiroli -*- Computer Science PhD student @ Uny Bologna, Italy zack@{cs.unibo.it,debian.org,bononia.it} -%- http://www.bononia.it/zack/ If there's any real truth it's that the entire multidimensional infinity of the Universe is almost certainly being run by a bunch of maniacs. -!-
Attachment:
signature.asc
Description: Digital signature