mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
chore(highlightjs): map definitions
This commit is contained in:
parent
e0aa6f9200
commit
6625997554
@ -22,169 +22,169 @@ export interface MimeTypeDefinition {
|
||||
*/
|
||||
|
||||
export const MIME_TYPES_DICT: readonly MimeTypeDefinition[] = Object.freeze([
|
||||
{ title: "Plain text", mime: "text/plain", highlightJs: "plaintext", default: true },
|
||||
{ title: "Plain text", mime: "text/plain", default: true },
|
||||
|
||||
// Keep sorted alphabetically.
|
||||
{ title: "APL", mime: "text/apl" },
|
||||
{ title: "ASN.1", mime: "text/x-ttcn-asn" },
|
||||
{ title: "ASP.NET", mime: "application/x-aspx" },
|
||||
{ title: "Asterisk", mime: "text/x-asterisk" },
|
||||
{ title: "Batch file (DOS)", mime: "application/x-bat", highlightJs: "dos", codeMirrorSource: "libraries/codemirror/batch.js" },
|
||||
{ title: "Brainfuck", mime: "text/x-brainfuck", highlightJs: "brainfuck" },
|
||||
{ title: "C", mime: "text/x-csrc", highlightJs: "c", default: true },
|
||||
{ title: "C#", mime: "text/x-csharp", highlightJs: "csharp", default: true },
|
||||
{ title: "C++", mime: "text/x-c++src", highlightJs: "cpp", default: true },
|
||||
{ title: "Clojure", mime: "text/x-clojure", highlightJs: "clojure" },
|
||||
{ title: "Batch file (DOS)", mime: "application/x-bat", codeMirrorSource: "libraries/codemirror/batch.js" },
|
||||
{ title: "Brainfuck", mime: "text/x-brainfuck" },
|
||||
{ title: "C", mime: "text/x-csrc", default: true },
|
||||
{ title: "C#", mime: "text/x-csharp", default: true },
|
||||
{ title: "C++", mime: "text/x-c++src", default: true },
|
||||
{ title: "Clojure", mime: "text/x-clojure" },
|
||||
{ title: "ClojureScript", mime: "text/x-clojurescript" },
|
||||
{ title: "Closure Stylesheets (GSS)", mime: "text/x-gss" },
|
||||
{ title: "CMake", mime: "text/x-cmake", highlightJs: "cmake" },
|
||||
{ title: "CMake", mime: "text/x-cmake" },
|
||||
{ title: "Cobol", mime: "text/x-cobol" },
|
||||
{ title: "CoffeeScript", mime: "text/coffeescript", highlightJs: "coffeescript" },
|
||||
{ title: "Common Lisp", mime: "text/x-common-lisp", highlightJs: "lisp" },
|
||||
{ title: "CoffeeScript", mime: "text/coffeescript" },
|
||||
{ title: "Common Lisp", mime: "text/x-common-lisp" },
|
||||
{ title: "CQL", mime: "text/x-cassandra" },
|
||||
{ title: "Crystal", mime: "text/x-crystal", highlightJs: "crystal" },
|
||||
{ title: "CSS", mime: "text/css", highlightJs: "css", default: true },
|
||||
{ title: "Crystal", mime: "text/x-crystal" },
|
||||
{ title: "CSS", mime: "text/css", default: true },
|
||||
{ title: "Cypher", mime: "application/x-cypher-query" },
|
||||
{ title: "Cython", mime: "text/x-cython" },
|
||||
{ title: "D", mime: "text/x-d", highlightJs: "d" },
|
||||
{ title: "Dart", mime: "application/dart", highlightJs: "dart" },
|
||||
{ title: "diff", mime: "text/x-diff", highlightJs: "diff" },
|
||||
{ title: "Django", mime: "text/x-django", highlightJs: "django" },
|
||||
{ title: "Dockerfile", mime: "text/x-dockerfile", highlightJs: "dockerfile" },
|
||||
{ title: "D", mime: "text/x-d" },
|
||||
{ title: "Dart", mime: "application/dart" },
|
||||
{ title: "diff", mime: "text/x-diff" },
|
||||
{ title: "Django", mime: "text/x-django" },
|
||||
{ title: "Dockerfile", mime: "text/x-dockerfile" },
|
||||
{ title: "DTD", mime: "application/xml-dtd" },
|
||||
{ title: "Dylan", mime: "text/x-dylan" },
|
||||
{ title: "EBNF", mime: "text/x-ebnf", highlightJs: "ebnf" },
|
||||
{ title: "EBNF", mime: "text/x-ebnf" },
|
||||
{ title: "ECL", mime: "text/x-ecl" },
|
||||
{ title: "edn", mime: "application/edn" },
|
||||
{ title: "Eiffel", mime: "text/x-eiffel" },
|
||||
{ title: "Elm", mime: "text/x-elm", highlightJs: "elm" },
|
||||
{ title: "Elm", mime: "text/x-elm" },
|
||||
{ title: "Embedded Javascript", mime: "application/x-ejs" },
|
||||
{ title: "Embedded Ruby", mime: "application/x-erb", highlightJs: "erb" },
|
||||
{ title: "Erlang", mime: "text/x-erlang", highlightJs: "erlang" },
|
||||
{ title: "Embedded Ruby", mime: "application/x-erb" },
|
||||
{ title: "Erlang", mime: "text/x-erlang" },
|
||||
{ title: "Esper", mime: "text/x-esper" },
|
||||
{ title: "F#", mime: "text/x-fsharp", highlightJs: "fsharp" },
|
||||
{ title: "F#", mime: "text/x-fsharp" },
|
||||
{ title: "Factor", mime: "text/x-factor" },
|
||||
{ title: "FCL", mime: "text/x-fcl" },
|
||||
{ title: "Forth", mime: "text/x-forth" },
|
||||
{ title: "Fortran", mime: "text/x-fortran", highlightJs: "fortran" },
|
||||
{ title: "Fortran", mime: "text/x-fortran" },
|
||||
{ title: "Gas", mime: "text/x-gas" },
|
||||
{ title: "GDScript (Godot)", mime: "text/x-gdscript" },
|
||||
{ title: "Gherkin", mime: "text/x-feature", highlightJs: "gherkin" },
|
||||
{ title: "GitHub Flavored Markdown", mime: "text/x-gfm", highlightJs: "markdown" },
|
||||
{ title: "Go", mime: "text/x-go", highlightJs: "go", default: true },
|
||||
{ title: "Groovy", mime: "text/x-groovy", highlightJs: "groovy", default: true },
|
||||
{ title: "HAML", mime: "text/x-haml", highlightJs: "haml" },
|
||||
{ title: "Gherkin", mime: "text/x-feature" },
|
||||
{ title: "GitHub Flavored Markdown", mime: "text/x-gfm" },
|
||||
{ title: "Go", mime: "text/x-go", default: true },
|
||||
{ title: "Groovy", mime: "text/x-groovy", default: true },
|
||||
{ title: "HAML", mime: "text/x-haml" },
|
||||
{ title: "Haskell (Literate)", mime: "text/x-literate-haskell" },
|
||||
{ title: "Haskell", mime: "text/x-haskell", highlightJs: "haskell", default: true },
|
||||
{ title: "Haxe", mime: "text/x-haxe", highlightJs: "haxe" },
|
||||
{ title: "HTML", mime: "text/html", highlightJs: "xml", default: true },
|
||||
{ title: "HTTP", mime: "message/http", highlightJs: "http", default: true },
|
||||
{ title: "Haskell", mime: "text/x-haskell", default: true },
|
||||
{ title: "Haxe", mime: "text/x-haxe" },
|
||||
{ title: "HTML", mime: "text/html", default: true },
|
||||
{ title: "HTTP", mime: "message/http", default: true },
|
||||
{ title: "HXML", mime: "text/x-hxml" },
|
||||
{ title: "IDL", mime: "text/x-idl" },
|
||||
{ title: "Java Server Pages", mime: "application/x-jsp", highlightJs: "java" },
|
||||
{ title: "Java", mime: "text/x-java", highlightJs: "java", default: true },
|
||||
{ title: "Java Server Pages", mime: "application/x-jsp" },
|
||||
{ title: "Java", mime: "text/x-java", default: true },
|
||||
{ title: "Jinja2", mime: "text/jinja2" },
|
||||
{ title: "JS backend", mime: "application/javascript;env=backend", highlightJs: "javascript", default: true },
|
||||
{ title: "JS frontend", mime: "application/javascript;env=frontend", highlightJs: "javascript", default: true },
|
||||
{ title: "JSON-LD", mime: "application/ld+json", highlightJs: "json" },
|
||||
{ title: "JSON", mime: "application/json", highlightJs: "json", default: true },
|
||||
{ title: "JSX", mime: "text/jsx", highlightJs: "javascript" },
|
||||
{ title: "Julia", mime: "text/x-julia", highlightJs: "julia" },
|
||||
{ title: "Kotlin", mime: "text/x-kotlin", highlightJs: "kotlin", default: true },
|
||||
{ title: "LaTeX", mime: "text/x-latex", highlightJs: "latex" },
|
||||
{ title: "LESS", mime: "text/x-less", highlightJs: "less" },
|
||||
{ title: "LiveScript", mime: "text/x-livescript", highlightJs: "livescript" },
|
||||
{ title: "Lua", mime: "text/x-lua", highlightJs: "lua" },
|
||||
{ title: "MariaDB SQL", mime: "text/x-mariadb", highlightJs: "sql" },
|
||||
{ title: "Markdown", mime: "text/x-markdown", highlightJs: "markdown", default: true },
|
||||
{ title: "Mathematica", mime: "text/x-mathematica", highlightJs: "mathematica" },
|
||||
{ title: "JS backend", mime: "application/javascript;env=backend", default: true },
|
||||
{ title: "JS frontend", mime: "application/javascript;env=frontend", default: true },
|
||||
{ title: "JSON-LD", mime: "application/ld+json"},
|
||||
{ title: "JSON", mime: "application/json" },
|
||||
{ title: "JSX", mime: "text/jsx" },
|
||||
{ title: "Julia", mime: "text/x-julia" },
|
||||
{ title: "Kotlin", mime: "text/x-kotlin", default: true },
|
||||
{ title: "LaTeX", mime: "text/x-latex" },
|
||||
{ title: "LESS", mime: "text/x-less" },
|
||||
{ title: "LiveScript", mime: "text/x-livescript" },
|
||||
{ title: "Lua", mime: "text/x-lua" },
|
||||
{ title: "MariaDB SQL", mime: "text/x-mariadb" },
|
||||
{ title: "Markdown", mime: "text/x-markdown", default: true },
|
||||
{ title: "Mathematica", mime: "text/x-mathematica" },
|
||||
{ title: "mbox", mime: "application/mbox" },
|
||||
{ title: "MIPS Assembler", mime: "text/x-asm-mips", highlightJs: "mipsasm" },
|
||||
{ title: "MIPS Assembler", mime: "text/x-asm-mips" },
|
||||
{ title: "mIRC", mime: "text/mirc" },
|
||||
{ title: "Modelica", mime: "text/x-modelica" },
|
||||
{ title: "MS SQL", mime: "text/x-mssql", highlightJs: "sql" },
|
||||
{ title: "MS SQL", mime: "text/x-mssql" },
|
||||
{ title: "mscgen", mime: "text/x-mscgen" },
|
||||
{ title: "msgenny", mime: "text/x-msgenny" },
|
||||
{ title: "MUMPS", mime: "text/x-mumps" },
|
||||
{ title: "MySQL", mime: "text/x-mysql", highlightJs: "sql" },
|
||||
{ title: "Nix", mime: "text/x-nix", highlightJs: "nix" },
|
||||
{ title: "Nginx", mime: "text/x-nginx-conf", highlightJs: "nginx" },
|
||||
{ title: "NSIS", mime: "text/x-nsis", highlightJs: "nsis" },
|
||||
{ title: "MySQL", mime: "text/x-mysql" },
|
||||
{ title: "Nix", mime: "text/x-nix" },
|
||||
{ title: "Nginx", mime: "text/x-nginx-conf" },
|
||||
{ title: "NSIS", mime: "text/x-nsis" },
|
||||
{ title: "NTriples", mime: "application/n-triples" },
|
||||
{ title: "Objective-C", mime: "text/x-objectivec", highlightJs: "objectivec" },
|
||||
{ title: "OCaml", mime: "text/x-ocaml", highlightJs: "ocaml" },
|
||||
{ title: "Objective-C", mime: "text/x-objectivec" },
|
||||
{ title: "OCaml", mime: "text/x-ocaml" },
|
||||
{ title: "Octave", mime: "text/x-octave" },
|
||||
{ title: "Oz", mime: "text/x-oz" },
|
||||
{ title: "Pascal", mime: "text/x-pascal", highlightJs: "delphi" },
|
||||
{ title: "Pascal", mime: "text/x-pascal" },
|
||||
{ title: "PEG.js", mime: "null" },
|
||||
{ title: "Perl", mime: "text/x-perl", default: true },
|
||||
{ title: "PGP", mime: "application/pgp" },
|
||||
{ title: "PHP", mime: "text/x-php", default: true, highlightJs: "php" },
|
||||
{ title: "PHP", mime: "text/x-php", default: true },
|
||||
{ title: "Pig", mime: "text/x-pig" },
|
||||
{ title: "PLSQL", mime: "text/x-plsql", highlightJs: "sql" },
|
||||
{ title: "PostgreSQL", mime: "text/x-pgsql", highlightJs: "pgsql" },
|
||||
{ title: "PowerShell", mime: "application/x-powershell", highlightJs: "powershell" },
|
||||
{ title: "Properties files", mime: "text/x-properties", highlightJs: "properties" },
|
||||
{ title: "ProtoBuf", mime: "text/x-protobuf", highlightJs: "protobuf" },
|
||||
{ title: "PLSQL", mime: "text/x-plsql" },
|
||||
{ title: "PostgreSQL", mime: "text/x-pgsql" },
|
||||
{ title: "PowerShell", mime: "application/x-powershell" },
|
||||
{ title: "Properties files", mime: "text/x-properties" },
|
||||
{ title: "ProtoBuf", mime: "text/x-protobuf" },
|
||||
{ title: "Pug", mime: "text/x-pug" },
|
||||
{ title: "Puppet", mime: "text/x-puppet", highlightJs: "puppet" },
|
||||
{ title: "Python", mime: "text/x-python", highlightJs: "python", default: true },
|
||||
{ title: "Q", mime: "text/x-q", highlightJs: "q" },
|
||||
{ title: "R", mime: "text/x-rsrc", highlightJs: "r" },
|
||||
{ title: "Puppet", mime: "text/x-puppet" },
|
||||
{ title: "Python", mime: "text/x-python", default: true },
|
||||
{ title: "Q", mime: "text/x-q" },
|
||||
{ title: "R", mime: "text/x-rsrc" },
|
||||
{ title: "reStructuredText", mime: "text/x-rst" },
|
||||
{ title: "RPM Changes", mime: "text/x-rpm-changes" },
|
||||
{ title: "RPM Spec", mime: "text/x-rpm-spec" },
|
||||
{ title: "Ruby", mime: "text/x-ruby", highlightJs: "ruby", default: true },
|
||||
{ title: "Rust", mime: "text/x-rustsrc", highlightJs: "rust" },
|
||||
{ title: "SAS", mime: "text/x-sas", highlightJs: "sas" },
|
||||
{ title: "Sass", mime: "text/x-sass", highlightJs: "scss" },
|
||||
{ title: "Ruby", mime: "text/x-ruby", default: true },
|
||||
{ title: "Rust", mime: "text/x-rustsrc" },
|
||||
{ title: "SAS", mime: "text/x-sas" },
|
||||
{ title: "Sass", mime: "text/x-sass" },
|
||||
{ title: "Scala", mime: "text/x-scala" },
|
||||
{ title: "Scheme", mime: "text/x-scheme" },
|
||||
{ title: "SCSS", mime: "text/x-scss", highlightJs: "scss" },
|
||||
{ title: "Shell (bash)", mime: "text/x-sh", highlightJs: "bash", default: true },
|
||||
{ title: "SCSS", mime: "text/x-scss" },
|
||||
{ title: "Shell (bash)", mime: "text/x-sh", default: true },
|
||||
{ title: "Sieve", mime: "application/sieve" },
|
||||
{ title: "Slim", mime: "text/x-slim" },
|
||||
{ title: "Smalltalk", mime: "text/x-stsrc", highlightJs: "smalltalk" },
|
||||
{ title: "Smalltalk", mime: "text/x-stsrc" },
|
||||
{ title: "Smarty", mime: "text/x-smarty" },
|
||||
{ title: "SML", mime: "text/x-sml", highlightJs: "sml" },
|
||||
{ title: "SML", mime: "text/x-sml" },
|
||||
{ title: "Solr", mime: "text/x-solr" },
|
||||
{ title: "Soy", mime: "text/x-soy" },
|
||||
{ title: "SPARQL", mime: "application/sparql-query" },
|
||||
{ title: "Spreadsheet", mime: "text/x-spreadsheet" },
|
||||
{ title: "SQL", mime: "text/x-sql", highlightJs: "sql", default: true },
|
||||
{ title: "SQLite (Trilium)", mime: "text/x-sqlite;schema=trilium", highlightJs: "sql", default: true },
|
||||
{ title: "SQLite", mime: "text/x-sqlite", highlightJs: "sql" },
|
||||
{ title: "SQL", mime: "text/x-sql", default: true },
|
||||
{ title: "SQLite (Trilium)", mime: "text/x-sqlite;schema=trilium", default: true },
|
||||
{ title: "SQLite", mime: "text/x-sqlite" },
|
||||
{ title: "Squirrel", mime: "text/x-squirrel" },
|
||||
{ title: "sTeX", mime: "text/x-stex" },
|
||||
{ title: "Stylus", mime: "text/x-styl", highlightJs: "stylus" },
|
||||
{ title: "Stylus", mime: "text/x-styl" },
|
||||
{ title: "Swift", mime: "text/x-swift", default: true },
|
||||
{ title: "SystemVerilog", mime: "text/x-systemverilog" },
|
||||
{ title: "Tcl", mime: "text/x-tcl", highlightJs: "tcl" },
|
||||
{ title: "Terraform (HCL)", mime: "text/x-hcl", highlightJs: "terraform", highlightJsSource: "libraries", codeMirrorSource: "libraries/codemirror/hcl.js" },
|
||||
{ title: "Tcl", mime: "text/x-tcl" },
|
||||
{ title: "Terraform (HCL)", mime: "text/x-hcl", codeMirrorSource: "libraries/codemirror/hcl.js" },
|
||||
{ title: "Textile", mime: "text/x-textile" },
|
||||
{ title: "TiddlyWiki ", mime: "text/x-tiddlywiki" },
|
||||
{ title: "Tiki wiki", mime: "text/tiki" },
|
||||
{ title: "TOML", mime: "text/x-toml", highlightJs: "ini" },
|
||||
{ title: "TOML", mime: "text/x-toml" },
|
||||
{ title: "Tornado", mime: "text/x-tornado" },
|
||||
{ title: "troff", mime: "text/troff" },
|
||||
{ title: "TTCN_CFG", mime: "text/x-ttcn-cfg" },
|
||||
{ title: "TTCN", mime: "text/x-ttcn" },
|
||||
{ title: "Turtle", mime: "text/turtle" },
|
||||
{ title: "Twig", mime: "text/x-twig", highlightJs: "twig" },
|
||||
{ title: "TypeScript-JSX", mime: "text/typescript-jsx", highlightJs: "typescript" },
|
||||
{ title: "TypeScript", mime: "application/typescript", highlightJs: "typescript" },
|
||||
{ title: "VB.NET", mime: "text/x-vb", highlightJs: "vbnet" },
|
||||
{ title: "VBScript", mime: "text/vbscript", highlightJs: "vbscript" },
|
||||
{ title: "Twig", mime: "text/x-twig" },
|
||||
{ title: "TypeScript-JSX", mime: "text/typescript-jsx" },
|
||||
{ title: "TypeScript", mime: "application/typescript" },
|
||||
{ title: "VB.NET", mime: "text/x-vb" },
|
||||
{ title: "VBScript", mime: "text/vbscript" },
|
||||
{ title: "Velocity", mime: "text/velocity" },
|
||||
{ title: "Verilog", mime: "text/x-verilog", highlightJs: "verilog" },
|
||||
{ title: "VHDL", mime: "text/x-vhdl", highlightJs: "vhdl" },
|
||||
{ title: "Verilog", mime: "text/x-verilog" },
|
||||
{ title: "VHDL", mime: "text/x-vhdl" },
|
||||
{ title: "Vue.js Component", mime: "text/x-vue" },
|
||||
{ title: "Web IDL", mime: "text/x-webidl" },
|
||||
{ title: "XML", mime: "text/xml", highlightJs: "xml", default: true },
|
||||
{ title: "XQuery", mime: "application/xquery", highlightJs: "xquery" },
|
||||
{ title: "XML", mime: "text/xml", default: true },
|
||||
{ title: "XQuery", mime: "application/xquery" },
|
||||
{ title: "xu", mime: "text/x-xu" },
|
||||
{ title: "Yacas", mime: "text/x-yacas" },
|
||||
{ title: "YAML", mime: "text/x-yaml", highlightJs: "yaml", default: true },
|
||||
{ title: "YAML", mime: "text/x-yaml", default: true },
|
||||
{ title: "Z80", mime: "text/x-z80" }
|
||||
]);
|
||||
|
||||
|
@ -1,170 +1,174 @@
|
||||
import type { LanguageFn } from "highlight.js";
|
||||
|
||||
const byMimeType: Record<string, (() => Promise<LanguageFn>) | null> = {
|
||||
"text/plain": null,
|
||||
interface Mapping {
|
||||
loader: Promise<{ default: LanguageFn}>;
|
||||
alias: string;
|
||||
}
|
||||
|
||||
"application/dart": null,
|
||||
const byMimeType: Record<string, (Mapping | null)> = {
|
||||
"text/plain": { loader: import("highlight.js/lib/languages/plaintext.js"), alias: "plaintext" },
|
||||
"application/dart": { loader: import("highlight.js/lib/languages/dart.js"), alias: "dart" },
|
||||
"application/edn": null,
|
||||
"application/javascript;env=backend": null,
|
||||
"application/javascript;env=frontend": null,
|
||||
"application/json": null,
|
||||
"application/ld+json": null,
|
||||
"application/javascript;env=backend": { loader: import("highlight.js/lib/languages/javascript.js"), alias: "javascript" },
|
||||
"application/javascript;env=frontend": { loader: import("highlight.js/lib/languages/javascript.js"), alias: "javascript" },
|
||||
"application/json": { loader: import("highlight.js/lib/languages/json.js"), alias: "json" },
|
||||
"application/ld+json": { loader: import("highlight.js/lib/languages/json.js"), alias: "json" },
|
||||
"application/mbox": null,
|
||||
"application/n-triples": null,
|
||||
"application/pgp": null,
|
||||
"application/sieve": null,
|
||||
"application/sparql-query": null,
|
||||
"application/typescript": null,
|
||||
"application/typescript": { loader: import("highlight.js/lib/languages/typescript.js"), alias: "typescript" },
|
||||
"application/x-aspx": null,
|
||||
"application/x-bat": null,
|
||||
"application/x-bat": { loader: import("highlight.js/lib/languages/bat.js"), alias: "bat" },
|
||||
"application/x-cypher-query": null,
|
||||
"application/x-ejs": null,
|
||||
"application/x-erb": null,
|
||||
"application/x-jsp": null,
|
||||
"application/x-powershell": null,
|
||||
"application/x-erb": { loader: import("highlight.js/lib/languages/erb.js"), alias: "erb" },
|
||||
"application/x-jsp": { loader: import("highlight.js/lib/languages/java.js"), alias: "java" },
|
||||
"application/x-powershell": { loader: import("highlight.js/lib/languages/powershell.js"), alias: "powershell" },
|
||||
"application/xml-dtd": null,
|
||||
"application/xquery": null,
|
||||
"message/http": null,
|
||||
"application/xquery": { loader: import("highlight.js/lib/languages/xquery.js"), alias: "xquery" },
|
||||
"message/http": { loader: import("highlight.js/lib/languages/http.js"), alias: "http" },
|
||||
"text/apl": null,
|
||||
"text/coffeescript": null,
|
||||
"text/css": null,
|
||||
"text/html": null,
|
||||
"text/coffeescript": { loader: import("highlight.js/lib/languages/coffeescript.js"), alias: "coffeescript" },
|
||||
"text/css": { loader: import("highlight.js/lib/languages/css.js"), alias: "css" },
|
||||
"text/html": { loader: import("highlight.js/lib/languages/html.js"), alias: "html" },
|
||||
"text/jinja2": null,
|
||||
"text/jsx": null,
|
||||
"text/jsx": { loader: import("highlight.js/lib/languages/javascript.js"), alias: "javascript" },
|
||||
"text/mirc": null,
|
||||
"text/tiki": null,
|
||||
"text/troff": null,
|
||||
"text/turtle": null,
|
||||
"text/typescript-jsx": null,
|
||||
"text/vbscript": null,
|
||||
"text/typescript-jsx": { loader: import("highlight.js/lib/languages/typescript.js"), alias: "typescript" },
|
||||
"text/vbscript": { loader: import("highlight.js/lib/languages/vbscript.js"), alias: "vbscript" },
|
||||
"text/velocity": null,
|
||||
"text/vnd.mermaid": null,
|
||||
"text/mermaid": null,
|
||||
"text/x-asm-mips": null,
|
||||
"text/x-asm-mips": { loader: import("highlight.js/lib/languages/mipsasm.js"), alias: "mipsasm" },
|
||||
"text/x-asterisk": null,
|
||||
"text/x-brainfuck": null,
|
||||
"text/x-c++src": null,
|
||||
"text/x-brainfuck": { loader: import("highlight.js/lib/languages/brainfuck.js"), alias: "brainfuck" },
|
||||
"text/x-c++src": { loader: import("highlight.js/lib/languages/cpp.js"), alias: "cpp" },
|
||||
"text/x-cassandra": null,
|
||||
"text/x-clojure": null,
|
||||
"text/x-clojure": { loader: import("highlight.js/lib/languages/clojure.js"), alias: "clojure" },
|
||||
"text/x-clojurescript": null,
|
||||
"text/x-cmake": null,
|
||||
"text/x-cmake": { loader: import("highlight.js/lib/languages/cmake.js"), alias: "cmake" },
|
||||
"text/x-cobol": null,
|
||||
"text/x-common-lisp": null,
|
||||
"text/x-crystal": null,
|
||||
"text/x-csharp": null,
|
||||
"text/x-csrc": null,
|
||||
"text/x-common-lisp": { loader: import("highlight.js/lib/languages/lisp.js"), alias: "lisp" },
|
||||
"text/x-crystal": { loader: import("highlight.js/lib/languages/crystal.js"), alias: "crystal" },
|
||||
"text/x-csharp": { loader: import("highlight.js/lib/languages/csharp.js"), alias: "csharp" },
|
||||
"text/x-csrc": { loader: import("highlight.js/lib/languages/c.js"), alias: "c" },
|
||||
"text/x-cython": null,
|
||||
"text/x-d": null,
|
||||
"text/x-diff": null,
|
||||
"text/x-django": null,
|
||||
"text/x-dockerfile": null,
|
||||
"text/x-d": { loader: import("highlight.js/lib/languages/d.js"), alias: "d" },
|
||||
"text/x-diff": { loader: import("highlight.js/lib/languages/diff.js"), alias: "diff" },
|
||||
"text/x-django": { loader: import("highlight.js/lib/languages/django.js"), alias: "django" },
|
||||
"text/x-dockerfile": { loader: import("highlight.js/lib/languages/dockerfile.js"), alias: "dockerfile" },
|
||||
"text/x-dylan": null,
|
||||
"text/x-ebnf": null,
|
||||
"text/x-ebnf": { loader: import("highlight.js/lib/languages/ebnf.js"), alias: "ebnf" },
|
||||
"text/x-ecl": null,
|
||||
"text/x-eiffel": null,
|
||||
"text/x-elm": null,
|
||||
"text/x-erlang": null,
|
||||
"text/x-elm": { loader: import("highlight.js/lib/languages/elm.js"), alias: "elm" },
|
||||
"text/x-erlang": { loader: import("highlight.js/lib/languages/erlang.js"), alias: "erlang" },
|
||||
"text/x-esper": null,
|
||||
"text/x-factor": null,
|
||||
"text/x-fcl": null,
|
||||
"text/x-feature": null,
|
||||
"text/x-feature": { loader: import("highlight.js/lib/languages/gherkin.js"), alias: "gherkin" },
|
||||
"text/x-forth": null,
|
||||
"text/x-fortran": null,
|
||||
"text/x-fsharp": null,
|
||||
"text/x-fortran": { loader: import("highlight.js/lib/languages/fortran.js"), alias: "fortran" },
|
||||
"text/x-fsharp": { loader: import("highlight.js/lib/languages/fsharp.js"), alias: "fsharp" },
|
||||
"text/x-gas": null,
|
||||
"text/x-gdscript": null,
|
||||
"text/x-gfm": null,
|
||||
"text/x-go": null,
|
||||
"text/x-groovy": null,
|
||||
"text/x-gfm": { loader: import("highlight.js/lib/languages/markdown.js"), alias: "markdown" },
|
||||
"text/x-go": { loader: import("highlight.js/lib/languages/go.js"), alias: "go" },
|
||||
"text/x-groovy": { loader: import("highlight.js/lib/languages/groovy.js"), alias: "groovy" },
|
||||
"text/x-gss": null,
|
||||
"text/x-haml": null,
|
||||
"text/x-haskell": null,
|
||||
"text/x-haxe": null,
|
||||
"text/x-hcl": null,
|
||||
"text/x-haml": { loader: import("highlight.js/lib/languages/haml.js"), alias: "haml" },
|
||||
"text/x-haskell": { loader: import("highlight.js/lib/languages/haskell.js"), alias: "haskell" },
|
||||
"text/x-haxe": { loader: import("highlight.js/lib/languages/haxe.js"), alias: "haxe" },
|
||||
"text/x-hcl": { loader: import("highlight.js/lib/languages/terraform.js"), alias: "terraform" },
|
||||
"text/x-hxml": null,
|
||||
"text/x-idl": null,
|
||||
"text/x-java": null,
|
||||
"text/x-julia": null,
|
||||
"text/x-kotlin": null,
|
||||
"text/x-latex": null,
|
||||
"text/x-less": null,
|
||||
"text/x-java": { loader: import("highlight.js/lib/languages/java.js"), alias: "java" },
|
||||
"text/x-julia": { loader: import("highlight.js/lib/languages/julia.js"), alias: "julia" },
|
||||
"text/x-kotlin": { loader: import("highlight.js/lib/languages/kotlin.js"), alias: "kotlin" },
|
||||
"text/x-latex": { loader: import("highlight.js/lib/languages/latex.js"), alias: "latex" },
|
||||
"text/x-less": { loader: import("highlight.js/lib/languages/less.js"), alias: "less" },
|
||||
"text/x-literate-haskell": null,
|
||||
"text/x-livescript": null,
|
||||
"text/x-lua": null,
|
||||
"text/x-mariadb": null,
|
||||
"text/x-markdown": null,
|
||||
"text/x-mathematica": null,
|
||||
"text/x-livescript": { loader: import("highlight.js/lib/languages/livescript.js"), alias: "livescript" },
|
||||
"text/x-lua": { loader: import("highlight.js/lib/languages/lua.js"), alias: "lua" },
|
||||
"text/x-mariadb": { loader: import("highlight.js/lib/languages/sql.js"), alias: "sql" },
|
||||
"text/x-markdown": { loader: import("highlight.js/lib/languages/markdown.js"), alias: "markdown" },
|
||||
"text/x-mathematica": { loader: import("highlight.js/lib/languages/mathematica.js"), alias: "mathematica" },
|
||||
"text/x-modelica": null,
|
||||
"text/x-mscgen": null,
|
||||
"text/x-msgenny": null,
|
||||
"text/x-mssql": null,
|
||||
"text/x-mssql": { loader: import("highlight.js/lib/languages/sql.js"), alias: "sql" },
|
||||
"text/x-mumps": null,
|
||||
"text/x-mysql": null,
|
||||
"text/x-nix": null,
|
||||
"text/x-nginx-conf": null,
|
||||
"text/x-nsis": null,
|
||||
"text/x-objectivec": null,
|
||||
"text/x-ocaml": null,
|
||||
"text/x-mysql": { loader: import("highlight.js/lib/languages/sql.js"), alias: "sql" },
|
||||
"text/x-nix": { loader: import("highlight.js/lib/languages/nix.js"), alias: "nix" },
|
||||
"text/x-nginx-conf": { loader: import("highlight.js/lib/languages/nginx.js"), alias: "nginx" },
|
||||
"text/x-nsis": { loader: import("highlight.js/lib/languages/nsis.js"), alias: "nsis" },
|
||||
"text/x-objectivec": { loader: import("highlight.js/lib/languages/objectivec.js"), alias: "objectivec" },
|
||||
"text/x-ocaml": { loader: import("highlight.js/lib/languages/ocaml.js"), alias: "ocaml" },
|
||||
"text/x-octave": null,
|
||||
"text/x-oz": null,
|
||||
"text/x-pascal": null,
|
||||
"text/x-pascal": { loader: import("highlight.js/lib/languages/delphi.js"), alias: "delphi" },
|
||||
"text/x-perl": null,
|
||||
"text/x-pgsql": null,
|
||||
"text/x-php": null,
|
||||
"text/x-pgsql": { loader: import("highlight.js/lib/languages/sql.js"), alias: "sql" },
|
||||
"text/x-php": { loader: import("highlight.js/lib/languages/php.js"), alias: "php" },
|
||||
"text/x-pig": null,
|
||||
"text/x-plsql": null,
|
||||
"text/x-properties": null,
|
||||
"text/x-protobuf": null,
|
||||
"text/x-plsql": { loader: import("highlight.js/lib/languages/sql.js"), alias: "sql" },
|
||||
"text/x-properties": { loader: import("highlight.js/lib/languages/properties.js"), alias: "properties" },
|
||||
"text/x-protobuf": { loader: import("highlight.js/lib/languages/protobuf.js"), alias: "protobuf" },
|
||||
"text/x-pug": null,
|
||||
"text/x-puppet": null,
|
||||
"text/x-python": null,
|
||||
"text/x-q": null,
|
||||
"text/x-puppet": { loader: import("highlight.js/lib/languages/puppet.js"), alias: "puppet" },
|
||||
"text/x-python": { loader: import("highlight.js/lib/languages/python.js"), alias: "python" },
|
||||
"text/x-q": { loader: import("highlight.js/lib/languages/q.js"), alias: "q" },
|
||||
"text/x-rpm-changes": null,
|
||||
"text/x-rpm-spec": null,
|
||||
"text/x-rsrc": null,
|
||||
"text/x-rsrc": { loader: import("highlight.js/lib/languages/r.js"), alias: "r" },
|
||||
"text/x-rst": null,
|
||||
"text/x-ruby": null,
|
||||
"text/x-rustsrc": null,
|
||||
"text/x-sas": null,
|
||||
"text/x-sass": null,
|
||||
"text/x-ruby": { loader: import("highlight.js/lib/languages/ruby.js"), alias: "ruby" },
|
||||
"text/x-rustsrc": { loader: import("highlight.js/lib/languages/rust.js"), alias: "rust" },
|
||||
"text/x-sas": { loader: import("highlight.js/lib/languages/sas.js"), alias: "sas" },
|
||||
"text/x-sass": { loader: import("highlight.js/lib/languages/scss.js"), alias: "scss" },
|
||||
"text/x-scala": null,
|
||||
"text/x-scheme": null,
|
||||
"text/x-scss": null,
|
||||
"text/x-sh": null,
|
||||
"text/x-scss": { loader: import("highlight.js/lib/languages/scss.js"), alias: "scss" },
|
||||
"text/x-sh": { loader: import("highlight.js/lib/languages/bash.js"), alias: "bash" },
|
||||
"text/x-slim": null,
|
||||
"text/x-smarty": null,
|
||||
"text/x-sml": null,
|
||||
"text/x-sml": { loader: import("highlight.js/lib/languages/sml.js"), alias: "sml" },
|
||||
"text/x-solr": null,
|
||||
"text/x-soy": null,
|
||||
"text/x-spreadsheet": null,
|
||||
"text/x-sql": null,
|
||||
"text/x-sqlite;schema=trilium": null,
|
||||
"text/x-sqlite": null,
|
||||
"text/x-sql": { loader: import("highlight.js/lib/languages/sql.js"), alias: "sql" },
|
||||
"text/x-sqlite;schema=trilium": { loader: import("highlight.js/lib/languages/sql.js"), alias: "sql" },
|
||||
"text/x-sqlite": { loader: import("highlight.js/lib/languages/sql.js"), alias: "sql" },
|
||||
"text/x-squirrel": null,
|
||||
"text/x-stex": null,
|
||||
"text/x-stsrc": null,
|
||||
"text/x-styl": null,
|
||||
"text/x-stsrc": { loader: import("highlight.js/lib/languages/smalltalk.js"), alias: "smalltalk" },
|
||||
"text/x-styl": { loader: import("highlight.js/lib/languages/stylus.js"), alias: "stylus" },
|
||||
"text/x-swift": null,
|
||||
"text/x-systemverilog": null,
|
||||
"text/x-tcl": null,
|
||||
"text/x-tcl": { loader: import("highlight.js/lib/languages/tcl.js"), alias: "tcl" },
|
||||
"text/x-textile": null,
|
||||
"text/x-tiddlywiki": null,
|
||||
"text/x-toml": null,
|
||||
"text/x-toml": { loader: import("highlight.js/lib/languages/ini.js"), alias: "ini" },
|
||||
"text/x-tornado": null,
|
||||
"text/x-ttcn-asn": null,
|
||||
"text/x-ttcn-cfg": null,
|
||||
"text/x-ttcn": null,
|
||||
"text/x-twig": null,
|
||||
"text/x-vb": null,
|
||||
"text/x-verilog": null,
|
||||
"text/x-vhdl": null,
|
||||
"text/x-twig": { loader: import("highlight.js/lib/languages/twig.js"), alias: "twig" },
|
||||
"text/x-vb": { loader: import("highlight.js/lib/languages/vbnet.js"), alias: "vbnet" },
|
||||
"text/x-verilog": { loader: import("highlight.js/lib/languages/verilog.js"), alias: "verilog" },
|
||||
"text/x-vhdl": { loader: import("highlight.js/lib/languages/vhdl.js"), alias: "vhdl" },
|
||||
"text/x-vue": null,
|
||||
"text/x-webidl": null,
|
||||
"text/x-xu": null,
|
||||
"text/x-yacas": null,
|
||||
"text/x-yaml": null,
|
||||
"text/x-yaml": { loader: import("highlight.js/lib/languages/yaml.js"), alias: "yaml" },
|
||||
"text/x-z80": null,
|
||||
"text/xml": null,
|
||||
"text/xml": { loader: import("highlight.js/lib/languages/xml.js"), alias: "xml" },
|
||||
}
|
||||
|
||||
export default byMimeType;
|
||||
|
Loading…
x
Reference in New Issue
Block a user