www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - MIME type for d-source files?

reply "Thomas Kuehne" <eisvogel users.sourceforge.net> writes:
Hi,

is there any mime type in common use for d-source files?

If there isn't any, how about "text/x-d"?

Thomas
Oct 08 2004
next sibling parent reply Helmut Leitner <helmut.leitner wikiservice.at> writes:
Thomas Kuehne wrote:
 
 Hi,
 
 is there any mime type in common use for d-source files?
 
 If there isn't any, how about "text/x-d"?
 
 Thomas

I'm no specialist on mime types, but this feels wrong intuitively. Maybe text/plain;charset=utf-8 But there are specialists for Unicode/UTF issues here in this newsgroup, who will know what to use. -- Helmut Leitner leitner hls.via.at Graz, Austria www.hls-software.com
Oct 08 2004
next sibling parent "Thomas Kuehne" <eisvogel users.sourceforge.net> writes:
Helmut Leitner schrieb
 is there any mime type in common use for d-source files?

 If there isn't any, how about "text/x-d"?

I'm no specialist on mime types, but this feels wrong intuitively. Maybe text/plain;charset=utf-8

I dissagree :) 1) souce files can be utf-8/16/32. 2) As you can see in KDE/Gnome and e.g. http://oregonstate.edu/cws/tutorials/faq/mime-types.html this kind of definition is quite common (at least in the *nix world) for other programming languages: text/x-c++hdrtext/x-c++src text/x-java text/x-pascalThomas
Oct 09 2004
prev sibling parent "Thomas Kuehne" <eisvogel users.sourceforge.net> writes:
Helmut Leitner schrieb
 is there any mime type in common use for d-source files?

 If there isn't any, how about "text/x-d"?

I'm no specialist on mime types, but this feels wrong intuitively. Maybe text/plain;charset=utf-8

I dissagree :) 1) souce files can be utf-8/16/32. 2) As you can see in KDE/Gnome and e.g. http://oregonstate.edu/cws/tutorials/faq/mime-types.html this kind of definition is quite common (at least in the *nix world) for other programming languages: text/x-c++hdr text/x-c++src text/x-java text/x-pascal 3) providing a mime type can be very usefull in automated environments (e.g version control or backup systems) Thomas
Oct 09 2004
prev sibling parent Alex Vincent <ajvincent gmail.com> writes:
Thomas Kuehne wrote:
 Hi,
 
 is there any mime type in common use for d-source files?
 
 If there isn't any, how about "text/x-d"?
 
 Thomas
 
 

application/x-d, but that implies a working application, not source code.
Oct 13 2004