in reply to Re: file type
in thread file type

That's an interesting approach, but I'd guess it's designed to figure out MIME types. I dunno if different kinds of source code are going to have distinct MIME types (but maybe the module could be hacked so as to recognize them ...). I also note that it seems to work its magic based on the extension, primarily, which is what I suggested above.

Philosophy can be made out of anything. Or less -- Jerry A. Fodor