Reputation: 1557
What is the standard mime type of an .fs
or .fsx
file? Is it ok to use text/x-fsharp
or text/fsharp
?
EDIT: By standard MIME type I meant something that F# software foundation suggests to use (if they do), not IANA.
P.S. I know there are text/x-python
and application/x-python-code
for Python. Deno uses application/typescript
for TS. But couldn't find anything for F# files.
Upvotes: 2
Views: 180
Reputation: 2436
There's no need for an F# mime type*. Standard MIME types are governed by IANA (python and typescript are not standard) as used by browsers. text/plain
is sufficient.
In Debian systems, you can create your own "mime" types to add icons to your file extensions. You could create your own text/x-fsharp if you fancy.
If you what you wanted is to be able to autorun fsx scripts in Linux just add:
#!/usr/bin/env dotnet fsi
to the top of your script file and make it executable
chmod +x file.fsx
Upvotes: 3