mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
63 lines
2.3 KiB
YAML
63 lines
2.3 KiB
YAML
# Additional types to add to MIME::Types
|
|
#
|
|
# MIME types are used to set the Content-Type of raw binary blobs. All text
|
|
# blobs are served as text/plain regardless of their type to ensure they
|
|
# open in the browser rather than downloading.
|
|
#
|
|
# The encoding helps determine whether a file should be treated as plain
|
|
# text or binary. By default, a mime type's encoding is base64 (binary).
|
|
# These types will show a "View Raw" link. To force a type to render as
|
|
# plain text, set it to 8bit for UTF-8. text/* types will be treated as
|
|
# text by default.
|
|
#
|
|
# <type> @<extensions> :<encoding>
|
|
#
|
|
# type - mediatype/subtype
|
|
# extensions - comma seperated extension list
|
|
# encoding - base64 (binary), 7bit (ASCII), 8bit (UTF-8), or
|
|
# quoted-printable (Printable ASCII).
|
|
#
|
|
# Follows same format as mime-types data file
|
|
# https://github.com/halostatue/mime-types/blob/master/lib/mime/types.rb.data
|
|
#
|
|
# Any additions or modifications (even trivial) should have corresponding
|
|
# test change in `test/test_mime.rb`.
|
|
|
|
# TODO: Lookup actual types
|
|
application/octet-stream @a,blend,gem,graffle,ipa,lib,mcz,nib,o,ogv,otf,pfx,pigx,plgx,psd,sib,spl,sqlite3,swc,ucode,xpi
|
|
|
|
# Please keep this list alphabetized
|
|
application/java-archive @ear,war
|
|
application/netcdf :8bit
|
|
application/ogg @ogg
|
|
application/postscript :base64
|
|
application/vnd.adobe.air-application-installer-package+zip @air
|
|
application/vnd.mozilla.xul+xml :8bit
|
|
application/vnd.oasis.opendocument.presentation @odp
|
|
application/vnd.oasis.opendocument.spreadsheet @ods
|
|
application/vnd.oasis.opendocument.text @odt
|
|
application/vnd.openofficeorg.extension @oxt
|
|
application/vnd.openxmlformats-officedocument.presentationml.presentation @pptx
|
|
application/x-chrome-extension @crx
|
|
application/x-iwork-keynote-sffkey @key
|
|
application/x-iwork-numbers-sffnumbers @numbers
|
|
application/x-iwork-pages-sffpages @pages
|
|
application/x-ms-xbap @xbap :8bit
|
|
application/x-parrot-bytecode @pbc
|
|
application/x-shockwave-flash @swf
|
|
application/x-silverlight-app @xap
|
|
application/x-supercollider @sc :8bit
|
|
application/x-troff-ms :8bit
|
|
application/x-wais-source :8bit
|
|
application/xaml+xml @xaml :8bit
|
|
application/xslt+xml @xslt :8bit
|
|
image/x-icns @icns
|
|
text/cache-manifest @manifest
|
|
text/plain @cu,cxx
|
|
text/x-logtalk @lgt
|
|
text/x-nemerle @n
|
|
text/x-nimrod @nim
|
|
text/x-ocaml @ml,mli,mll,mly,sig,sml
|
|
text/x-rust @rs,rc
|
|
text/x-scheme @rkt,scm,sls,sps,ss
|