Known

object Known

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val C: MimeType
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Well known name for Java source snippets.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Well known name for Kotlin source snippets. This is the base mime type; consider using isKotlin instead to check if a mime type represents Kotlin code such that it also picks up build.gradle.kts files (which carry extra attributes in the mime type; see GRADLE_KTS.)

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Note that most resource files will also have a folder type, so don't use equality on this mime type

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Well known mime type for text files.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Special marker mimetype for unknown or unspecified mime types. These will generally be treated as TEXT for editor purposes. (The standard "unknown" mime type is application/octet-stream (from RFC 2046) but we know this isn't binary data; it's text.)

Link copied to clipboard
Link copied to clipboard

Well known name for XML source snippets. This is the base mime type; consider using isXml instead to check if a mime type represents any XML such that it also picks up manifest files, resource files etc., which all carry extra attributes in the mime type; see for example MANIFEST and RESOURCE.

Link copied to clipboard

Functions

Link copied to clipboard

Maps from a markdown language name back to a mime type.