chore(highlightjs): map definitions

This commit is contained in:
Elian Doran 2025-05-18 11:12:40 +03:00
parent e0aa6f9200
commit 6625997554
No known key found for this signature in database
2 changed files with 189 additions and 185 deletions

View File

@ -22,169 +22,169 @@ export interface MimeTypeDefinition {
*/ */
export const MIME_TYPES_DICT: readonly MimeTypeDefinition[] = Object.freeze([ 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. // Keep sorted alphabetically.
{ title: "APL", mime: "text/apl" }, { title: "APL", mime: "text/apl" },
{ title: "ASN.1", mime: "text/x-ttcn-asn" }, { title: "ASN.1", mime: "text/x-ttcn-asn" },
{ title: "ASP.NET", mime: "application/x-aspx" }, { title: "ASP.NET", mime: "application/x-aspx" },
{ title: "Asterisk", mime: "text/x-asterisk" }, { title: "Asterisk", mime: "text/x-asterisk" },
{ title: "Batch file (DOS)", mime: "application/x-bat", highlightJs: "dos", codeMirrorSource: "libraries/codemirror/batch.js" }, { title: "Batch file (DOS)", mime: "application/x-bat", codeMirrorSource: "libraries/codemirror/batch.js" },
{ title: "Brainfuck", mime: "text/x-brainfuck", highlightJs: "brainfuck" }, { title: "Brainfuck", mime: "text/x-brainfuck" },
{ title: "C", mime: "text/x-csrc", highlightJs: "c", default: true }, { title: "C", mime: "text/x-csrc", default: true },
{ title: "C#", mime: "text/x-csharp", highlightJs: "csharp", default: true }, { title: "C#", mime: "text/x-csharp", default: true },
{ title: "C++", mime: "text/x-c++src", highlightJs: "cpp", default: true }, { title: "C++", mime: "text/x-c++src", default: true },
{ title: "Clojure", mime: "text/x-clojure", highlightJs: "clojure" }, { title: "Clojure", mime: "text/x-clojure" },
{ title: "ClojureScript", mime: "text/x-clojurescript" }, { title: "ClojureScript", mime: "text/x-clojurescript" },
{ title: "Closure Stylesheets (GSS)", mime: "text/x-gss" }, { 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: "Cobol", mime: "text/x-cobol" },
{ title: "CoffeeScript", mime: "text/coffeescript", highlightJs: "coffeescript" }, { title: "CoffeeScript", mime: "text/coffeescript" },
{ title: "Common Lisp", mime: "text/x-common-lisp", highlightJs: "lisp" }, { title: "Common Lisp", mime: "text/x-common-lisp" },
{ title: "CQL", mime: "text/x-cassandra" }, { title: "CQL", mime: "text/x-cassandra" },
{ title: "Crystal", mime: "text/x-crystal", highlightJs: "crystal" }, { title: "Crystal", mime: "text/x-crystal" },
{ title: "CSS", mime: "text/css", highlightJs: "css", default: true }, { title: "CSS", mime: "text/css", default: true },
{ title: "Cypher", mime: "application/x-cypher-query" }, { title: "Cypher", mime: "application/x-cypher-query" },
{ title: "Cython", mime: "text/x-cython" }, { title: "Cython", mime: "text/x-cython" },
{ title: "D", mime: "text/x-d", highlightJs: "d" }, { title: "D", mime: "text/x-d" },
{ title: "Dart", mime: "application/dart", highlightJs: "dart" }, { title: "Dart", mime: "application/dart" },
{ title: "diff", mime: "text/x-diff", highlightJs: "diff" }, { title: "diff", mime: "text/x-diff" },
{ title: "Django", mime: "text/x-django", highlightJs: "django" }, { title: "Django", mime: "text/x-django" },
{ title: "Dockerfile", mime: "text/x-dockerfile", highlightJs: "dockerfile" }, { title: "Dockerfile", mime: "text/x-dockerfile" },
{ title: "DTD", mime: "application/xml-dtd" }, { title: "DTD", mime: "application/xml-dtd" },
{ title: "Dylan", mime: "text/x-dylan" }, { 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: "ECL", mime: "text/x-ecl" },
{ title: "edn", mime: "application/edn" }, { title: "edn", mime: "application/edn" },
{ title: "Eiffel", mime: "text/x-eiffel" }, { 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 Javascript", mime: "application/x-ejs" },
{ title: "Embedded Ruby", mime: "application/x-erb", highlightJs: "erb" }, { title: "Embedded Ruby", mime: "application/x-erb" },
{ title: "Erlang", mime: "text/x-erlang", highlightJs: "erlang" }, { title: "Erlang", mime: "text/x-erlang" },
{ title: "Esper", mime: "text/x-esper" }, { 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: "Factor", mime: "text/x-factor" },
{ title: "FCL", mime: "text/x-fcl" }, { title: "FCL", mime: "text/x-fcl" },
{ title: "Forth", mime: "text/x-forth" }, { 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: "Gas", mime: "text/x-gas" },
{ title: "GDScript (Godot)", mime: "text/x-gdscript" }, { title: "GDScript (Godot)", mime: "text/x-gdscript" },
{ title: "Gherkin", mime: "text/x-feature", highlightJs: "gherkin" }, { title: "Gherkin", mime: "text/x-feature" },
{ title: "GitHub Flavored Markdown", mime: "text/x-gfm", highlightJs: "markdown" }, { title: "GitHub Flavored Markdown", mime: "text/x-gfm" },
{ title: "Go", mime: "text/x-go", highlightJs: "go", default: true }, { title: "Go", mime: "text/x-go", default: true },
{ title: "Groovy", mime: "text/x-groovy", highlightJs: "groovy", default: true }, { title: "Groovy", mime: "text/x-groovy", default: true },
{ title: "HAML", mime: "text/x-haml", highlightJs: "haml" }, { title: "HAML", mime: "text/x-haml" },
{ title: "Haskell (Literate)", mime: "text/x-literate-haskell" }, { title: "Haskell (Literate)", mime: "text/x-literate-haskell" },
{ title: "Haskell", mime: "text/x-haskell", highlightJs: "haskell", default: true }, { title: "Haskell", mime: "text/x-haskell", default: true },
{ title: "Haxe", mime: "text/x-haxe", highlightJs: "haxe" }, { title: "Haxe", mime: "text/x-haxe" },
{ title: "HTML", mime: "text/html", highlightJs: "xml", default: true }, { title: "HTML", mime: "text/html", default: true },
{ title: "HTTP", mime: "message/http", highlightJs: "http", default: true }, { title: "HTTP", mime: "message/http", default: true },
{ title: "HXML", mime: "text/x-hxml" }, { title: "HXML", mime: "text/x-hxml" },
{ title: "IDL", mime: "text/x-idl" }, { title: "IDL", mime: "text/x-idl" },
{ title: "Java Server Pages", mime: "application/x-jsp", highlightJs: "java" }, { title: "Java Server Pages", mime: "application/x-jsp" },
{ title: "Java", mime: "text/x-java", highlightJs: "java", default: true }, { title: "Java", mime: "text/x-java", default: true },
{ title: "Jinja2", mime: "text/jinja2" }, { title: "Jinja2", mime: "text/jinja2" },
{ title: "JS backend", mime: "application/javascript;env=backend", highlightJs: "javascript", default: true }, { title: "JS backend", mime: "application/javascript;env=backend", default: true },
{ title: "JS frontend", mime: "application/javascript;env=frontend", highlightJs: "javascript", default: true }, { title: "JS frontend", mime: "application/javascript;env=frontend", default: true },
{ title: "JSON-LD", mime: "application/ld+json", highlightJs: "json" }, { title: "JSON-LD", mime: "application/ld+json"},
{ title: "JSON", mime: "application/json", highlightJs: "json", default: true }, { title: "JSON", mime: "application/json" },
{ title: "JSX", mime: "text/jsx", highlightJs: "javascript" }, { title: "JSX", mime: "text/jsx" },
{ title: "Julia", mime: "text/x-julia", highlightJs: "julia" }, { title: "Julia", mime: "text/x-julia" },
{ title: "Kotlin", mime: "text/x-kotlin", highlightJs: "kotlin", default: true }, { title: "Kotlin", mime: "text/x-kotlin", default: true },
{ title: "LaTeX", mime: "text/x-latex", highlightJs: "latex" }, { title: "LaTeX", mime: "text/x-latex" },
{ title: "LESS", mime: "text/x-less", highlightJs: "less" }, { title: "LESS", mime: "text/x-less" },
{ title: "LiveScript", mime: "text/x-livescript", highlightJs: "livescript" }, { title: "LiveScript", mime: "text/x-livescript" },
{ title: "Lua", mime: "text/x-lua", highlightJs: "lua" }, { title: "Lua", mime: "text/x-lua" },
{ title: "MariaDB SQL", mime: "text/x-mariadb", highlightJs: "sql" }, { title: "MariaDB SQL", mime: "text/x-mariadb" },
{ title: "Markdown", mime: "text/x-markdown", highlightJs: "markdown", default: true }, { title: "Markdown", mime: "text/x-markdown", default: true },
{ title: "Mathematica", mime: "text/x-mathematica", highlightJs: "mathematica" }, { title: "Mathematica", mime: "text/x-mathematica" },
{ title: "mbox", mime: "application/mbox" }, { 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: "mIRC", mime: "text/mirc" },
{ title: "Modelica", mime: "text/x-modelica" }, { 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: "mscgen", mime: "text/x-mscgen" },
{ title: "msgenny", mime: "text/x-msgenny" }, { title: "msgenny", mime: "text/x-msgenny" },
{ title: "MUMPS", mime: "text/x-mumps" }, { title: "MUMPS", mime: "text/x-mumps" },
{ title: "MySQL", mime: "text/x-mysql", highlightJs: "sql" }, { title: "MySQL", mime: "text/x-mysql" },
{ title: "Nix", mime: "text/x-nix", highlightJs: "nix" }, { title: "Nix", mime: "text/x-nix" },
{ title: "Nginx", mime: "text/x-nginx-conf", highlightJs: "nginx" }, { title: "Nginx", mime: "text/x-nginx-conf" },
{ title: "NSIS", mime: "text/x-nsis", highlightJs: "nsis" }, { title: "NSIS", mime: "text/x-nsis" },
{ title: "NTriples", mime: "application/n-triples" }, { title: "NTriples", mime: "application/n-triples" },
{ title: "Objective-C", mime: "text/x-objectivec", highlightJs: "objectivec" }, { title: "Objective-C", mime: "text/x-objectivec" },
{ title: "OCaml", mime: "text/x-ocaml", highlightJs: "ocaml" }, { title: "OCaml", mime: "text/x-ocaml" },
{ title: "Octave", mime: "text/x-octave" }, { title: "Octave", mime: "text/x-octave" },
{ title: "Oz", mime: "text/x-oz" }, { 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: "PEG.js", mime: "null" },
{ title: "Perl", mime: "text/x-perl", default: true }, { title: "Perl", mime: "text/x-perl", default: true },
{ title: "PGP", mime: "application/pgp" }, { 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: "Pig", mime: "text/x-pig" },
{ title: "PLSQL", mime: "text/x-plsql", highlightJs: "sql" }, { title: "PLSQL", mime: "text/x-plsql" },
{ title: "PostgreSQL", mime: "text/x-pgsql", highlightJs: "pgsql" }, { title: "PostgreSQL", mime: "text/x-pgsql" },
{ title: "PowerShell", mime: "application/x-powershell", highlightJs: "powershell" }, { title: "PowerShell", mime: "application/x-powershell" },
{ title: "Properties files", mime: "text/x-properties", highlightJs: "properties" }, { title: "Properties files", mime: "text/x-properties" },
{ title: "ProtoBuf", mime: "text/x-protobuf", highlightJs: "protobuf" }, { title: "ProtoBuf", mime: "text/x-protobuf" },
{ title: "Pug", mime: "text/x-pug" }, { title: "Pug", mime: "text/x-pug" },
{ title: "Puppet", mime: "text/x-puppet", highlightJs: "puppet" }, { title: "Puppet", mime: "text/x-puppet" },
{ title: "Python", mime: "text/x-python", highlightJs: "python", default: true }, { title: "Python", mime: "text/x-python", default: true },
{ title: "Q", mime: "text/x-q", highlightJs: "q" }, { title: "Q", mime: "text/x-q" },
{ title: "R", mime: "text/x-rsrc", highlightJs: "r" }, { title: "R", mime: "text/x-rsrc" },
{ title: "reStructuredText", mime: "text/x-rst" }, { title: "reStructuredText", mime: "text/x-rst" },
{ title: "RPM Changes", mime: "text/x-rpm-changes" }, { title: "RPM Changes", mime: "text/x-rpm-changes" },
{ title: "RPM Spec", mime: "text/x-rpm-spec" }, { title: "RPM Spec", mime: "text/x-rpm-spec" },
{ title: "Ruby", mime: "text/x-ruby", highlightJs: "ruby", default: true }, { title: "Ruby", mime: "text/x-ruby", default: true },
{ title: "Rust", mime: "text/x-rustsrc", highlightJs: "rust" }, { title: "Rust", mime: "text/x-rustsrc" },
{ title: "SAS", mime: "text/x-sas", highlightJs: "sas" }, { title: "SAS", mime: "text/x-sas" },
{ title: "Sass", mime: "text/x-sass", highlightJs: "scss" }, { title: "Sass", mime: "text/x-sass" },
{ title: "Scala", mime: "text/x-scala" }, { title: "Scala", mime: "text/x-scala" },
{ title: "Scheme", mime: "text/x-scheme" }, { title: "Scheme", mime: "text/x-scheme" },
{ title: "SCSS", mime: "text/x-scss", highlightJs: "scss" }, { title: "SCSS", mime: "text/x-scss" },
{ title: "Shell (bash)", mime: "text/x-sh", highlightJs: "bash", default: true }, { title: "Shell (bash)", mime: "text/x-sh", default: true },
{ title: "Sieve", mime: "application/sieve" }, { title: "Sieve", mime: "application/sieve" },
{ title: "Slim", mime: "text/x-slim" }, { 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: "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: "Solr", mime: "text/x-solr" },
{ title: "Soy", mime: "text/x-soy" }, { title: "Soy", mime: "text/x-soy" },
{ title: "SPARQL", mime: "application/sparql-query" }, { title: "SPARQL", mime: "application/sparql-query" },
{ title: "Spreadsheet", mime: "text/x-spreadsheet" }, { title: "Spreadsheet", mime: "text/x-spreadsheet" },
{ title: "SQL", mime: "text/x-sql", highlightJs: "sql", default: true }, { title: "SQL", mime: "text/x-sql", default: true },
{ title: "SQLite (Trilium)", mime: "text/x-sqlite;schema=trilium", highlightJs: "sql", default: true }, { title: "SQLite (Trilium)", mime: "text/x-sqlite;schema=trilium", default: true },
{ title: "SQLite", mime: "text/x-sqlite", highlightJs: "sql" }, { title: "SQLite", mime: "text/x-sqlite" },
{ title: "Squirrel", mime: "text/x-squirrel" }, { title: "Squirrel", mime: "text/x-squirrel" },
{ title: "sTeX", mime: "text/x-stex" }, { 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: "Swift", mime: "text/x-swift", default: true },
{ title: "SystemVerilog", mime: "text/x-systemverilog" }, { title: "SystemVerilog", mime: "text/x-systemverilog" },
{ title: "Tcl", mime: "text/x-tcl", highlightJs: "tcl" }, { title: "Tcl", mime: "text/x-tcl" },
{ title: "Terraform (HCL)", mime: "text/x-hcl", highlightJs: "terraform", highlightJsSource: "libraries", codeMirrorSource: "libraries/codemirror/hcl.js" }, { title: "Terraform (HCL)", mime: "text/x-hcl", codeMirrorSource: "libraries/codemirror/hcl.js" },
{ title: "Textile", mime: "text/x-textile" }, { title: "Textile", mime: "text/x-textile" },
{ title: "TiddlyWiki ", mime: "text/x-tiddlywiki" }, { title: "TiddlyWiki ", mime: "text/x-tiddlywiki" },
{ title: "Tiki wiki", mime: "text/tiki" }, { 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: "Tornado", mime: "text/x-tornado" },
{ title: "troff", mime: "text/troff" }, { title: "troff", mime: "text/troff" },
{ title: "TTCN_CFG", mime: "text/x-ttcn-cfg" }, { title: "TTCN_CFG", mime: "text/x-ttcn-cfg" },
{ title: "TTCN", mime: "text/x-ttcn" }, { title: "TTCN", mime: "text/x-ttcn" },
{ title: "Turtle", mime: "text/turtle" }, { title: "Turtle", mime: "text/turtle" },
{ title: "Twig", mime: "text/x-twig", highlightJs: "twig" }, { title: "Twig", mime: "text/x-twig" },
{ title: "TypeScript-JSX", mime: "text/typescript-jsx", highlightJs: "typescript" }, { title: "TypeScript-JSX", mime: "text/typescript-jsx" },
{ title: "TypeScript", mime: "application/typescript", highlightJs: "typescript" }, { title: "TypeScript", mime: "application/typescript" },
{ title: "VB.NET", mime: "text/x-vb", highlightJs: "vbnet" }, { title: "VB.NET", mime: "text/x-vb" },
{ title: "VBScript", mime: "text/vbscript", highlightJs: "vbscript" }, { title: "VBScript", mime: "text/vbscript" },
{ title: "Velocity", mime: "text/velocity" }, { title: "Velocity", mime: "text/velocity" },
{ title: "Verilog", mime: "text/x-verilog", highlightJs: "verilog" }, { title: "Verilog", mime: "text/x-verilog" },
{ title: "VHDL", mime: "text/x-vhdl", highlightJs: "vhdl" }, { title: "VHDL", mime: "text/x-vhdl" },
{ title: "Vue.js Component", mime: "text/x-vue" }, { title: "Vue.js Component", mime: "text/x-vue" },
{ title: "Web IDL", mime: "text/x-webidl" }, { title: "Web IDL", mime: "text/x-webidl" },
{ title: "XML", mime: "text/xml", highlightJs: "xml", default: true }, { title: "XML", mime: "text/xml", default: true },
{ title: "XQuery", mime: "application/xquery", highlightJs: "xquery" }, { title: "XQuery", mime: "application/xquery" },
{ title: "xu", mime: "text/x-xu" }, { title: "xu", mime: "text/x-xu" },
{ title: "Yacas", mime: "text/x-yacas" }, { 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" } { title: "Z80", mime: "text/x-z80" }
]); ]);

View File

@ -1,170 +1,174 @@
import type { LanguageFn } from "highlight.js"; import type { LanguageFn } from "highlight.js";
const byMimeType: Record<string, (() => Promise<LanguageFn>) | null> = { interface Mapping {
"text/plain": null, 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/edn": null,
"application/javascript;env=backend": null, "application/javascript;env=backend": { loader: import("highlight.js/lib/languages/javascript.js"), alias: "javascript" },
"application/javascript;env=frontend": null, "application/javascript;env=frontend": { loader: import("highlight.js/lib/languages/javascript.js"), alias: "javascript" },
"application/json": null, "application/json": { loader: import("highlight.js/lib/languages/json.js"), alias: "json" },
"application/ld+json": null, "application/ld+json": { loader: import("highlight.js/lib/languages/json.js"), alias: "json" },
"application/mbox": null, "application/mbox": null,
"application/n-triples": null, "application/n-triples": null,
"application/pgp": null, "application/pgp": null,
"application/sieve": null, "application/sieve": null,
"application/sparql-query": 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-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-cypher-query": null,
"application/x-ejs": null, "application/x-ejs": null,
"application/x-erb": null, "application/x-erb": { loader: import("highlight.js/lib/languages/erb.js"), alias: "erb" },
"application/x-jsp": null, "application/x-jsp": { loader: import("highlight.js/lib/languages/java.js"), alias: "java" },
"application/x-powershell": null, "application/x-powershell": { loader: import("highlight.js/lib/languages/powershell.js"), alias: "powershell" },
"application/xml-dtd": null, "application/xml-dtd": null,
"application/xquery": null, "application/xquery": { loader: import("highlight.js/lib/languages/xquery.js"), alias: "xquery" },
"message/http": null, "message/http": { loader: import("highlight.js/lib/languages/http.js"), alias: "http" },
"text/apl": null, "text/apl": null,
"text/coffeescript": null, "text/coffeescript": { loader: import("highlight.js/lib/languages/coffeescript.js"), alias: "coffeescript" },
"text/css": null, "text/css": { loader: import("highlight.js/lib/languages/css.js"), alias: "css" },
"text/html": null, "text/html": { loader: import("highlight.js/lib/languages/html.js"), alias: "html" },
"text/jinja2": null, "text/jinja2": null,
"text/jsx": null, "text/jsx": { loader: import("highlight.js/lib/languages/javascript.js"), alias: "javascript" },
"text/mirc": null, "text/mirc": null,
"text/tiki": null, "text/tiki": null,
"text/troff": null, "text/troff": null,
"text/turtle": null, "text/turtle": null,
"text/typescript-jsx": null, "text/typescript-jsx": { loader: import("highlight.js/lib/languages/typescript.js"), alias: "typescript" },
"text/vbscript": null, "text/vbscript": { loader: import("highlight.js/lib/languages/vbscript.js"), alias: "vbscript" },
"text/velocity": null, "text/velocity": null,
"text/vnd.mermaid": null, "text/vnd.mermaid": null,
"text/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-asterisk": null,
"text/x-brainfuck": null, "text/x-brainfuck": { loader: import("highlight.js/lib/languages/brainfuck.js"), alias: "brainfuck" },
"text/x-c++src": null, "text/x-c++src": { loader: import("highlight.js/lib/languages/cpp.js"), alias: "cpp" },
"text/x-cassandra": null, "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-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-cobol": null,
"text/x-common-lisp": null, "text/x-common-lisp": { loader: import("highlight.js/lib/languages/lisp.js"), alias: "lisp" },
"text/x-crystal": null, "text/x-crystal": { loader: import("highlight.js/lib/languages/crystal.js"), alias: "crystal" },
"text/x-csharp": null, "text/x-csharp": { loader: import("highlight.js/lib/languages/csharp.js"), alias: "csharp" },
"text/x-csrc": null, "text/x-csrc": { loader: import("highlight.js/lib/languages/c.js"), alias: "c" },
"text/x-cython": null, "text/x-cython": null,
"text/x-d": null, "text/x-d": { loader: import("highlight.js/lib/languages/d.js"), alias: "d" },
"text/x-diff": null, "text/x-diff": { loader: import("highlight.js/lib/languages/diff.js"), alias: "diff" },
"text/x-django": null, "text/x-django": { loader: import("highlight.js/lib/languages/django.js"), alias: "django" },
"text/x-dockerfile": null, "text/x-dockerfile": { loader: import("highlight.js/lib/languages/dockerfile.js"), alias: "dockerfile" },
"text/x-dylan": null, "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-ecl": null,
"text/x-eiffel": null, "text/x-eiffel": null,
"text/x-elm": null, "text/x-elm": { loader: import("highlight.js/lib/languages/elm.js"), alias: "elm" },
"text/x-erlang": null, "text/x-erlang": { loader: import("highlight.js/lib/languages/erlang.js"), alias: "erlang" },
"text/x-esper": null, "text/x-esper": null,
"text/x-factor": null, "text/x-factor": null,
"text/x-fcl": 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-forth": null,
"text/x-fortran": null, "text/x-fortran": { loader: import("highlight.js/lib/languages/fortran.js"), alias: "fortran" },
"text/x-fsharp": null, "text/x-fsharp": { loader: import("highlight.js/lib/languages/fsharp.js"), alias: "fsharp" },
"text/x-gas": null, "text/x-gas": null,
"text/x-gdscript": null, "text/x-gdscript": null,
"text/x-gfm": null, "text/x-gfm": { loader: import("highlight.js/lib/languages/markdown.js"), alias: "markdown" },
"text/x-go": null, "text/x-go": { loader: import("highlight.js/lib/languages/go.js"), alias: "go" },
"text/x-groovy": null, "text/x-groovy": { loader: import("highlight.js/lib/languages/groovy.js"), alias: "groovy" },
"text/x-gss": null, "text/x-gss": null,
"text/x-haml": null, "text/x-haml": { loader: import("highlight.js/lib/languages/haml.js"), alias: "haml" },
"text/x-haskell": null, "text/x-haskell": { loader: import("highlight.js/lib/languages/haskell.js"), alias: "haskell" },
"text/x-haxe": null, "text/x-haxe": { loader: import("highlight.js/lib/languages/haxe.js"), alias: "haxe" },
"text/x-hcl": null, "text/x-hcl": { loader: import("highlight.js/lib/languages/terraform.js"), alias: "terraform" },
"text/x-hxml": null, "text/x-hxml": null,
"text/x-idl": null, "text/x-idl": null,
"text/x-java": null, "text/x-java": { loader: import("highlight.js/lib/languages/java.js"), alias: "java" },
"text/x-julia": null, "text/x-julia": { loader: import("highlight.js/lib/languages/julia.js"), alias: "julia" },
"text/x-kotlin": null, "text/x-kotlin": { loader: import("highlight.js/lib/languages/kotlin.js"), alias: "kotlin" },
"text/x-latex": null, "text/x-latex": { loader: import("highlight.js/lib/languages/latex.js"), alias: "latex" },
"text/x-less": null, "text/x-less": { loader: import("highlight.js/lib/languages/less.js"), alias: "less" },
"text/x-literate-haskell": null, "text/x-literate-haskell": null,
"text/x-livescript": null, "text/x-livescript": { loader: import("highlight.js/lib/languages/livescript.js"), alias: "livescript" },
"text/x-lua": null, "text/x-lua": { loader: import("highlight.js/lib/languages/lua.js"), alias: "lua" },
"text/x-mariadb": null, "text/x-mariadb": { loader: import("highlight.js/lib/languages/sql.js"), alias: "sql" },
"text/x-markdown": null, "text/x-markdown": { loader: import("highlight.js/lib/languages/markdown.js"), alias: "markdown" },
"text/x-mathematica": null, "text/x-mathematica": { loader: import("highlight.js/lib/languages/mathematica.js"), alias: "mathematica" },
"text/x-modelica": null, "text/x-modelica": null,
"text/x-mscgen": null, "text/x-mscgen": null,
"text/x-msgenny": 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-mumps": null,
"text/x-mysql": null, "text/x-mysql": { loader: import("highlight.js/lib/languages/sql.js"), alias: "sql" },
"text/x-nix": null, "text/x-nix": { loader: import("highlight.js/lib/languages/nix.js"), alias: "nix" },
"text/x-nginx-conf": null, "text/x-nginx-conf": { loader: import("highlight.js/lib/languages/nginx.js"), alias: "nginx" },
"text/x-nsis": null, "text/x-nsis": { loader: import("highlight.js/lib/languages/nsis.js"), alias: "nsis" },
"text/x-objectivec": null, "text/x-objectivec": { loader: import("highlight.js/lib/languages/objectivec.js"), alias: "objectivec" },
"text/x-ocaml": null, "text/x-ocaml": { loader: import("highlight.js/lib/languages/ocaml.js"), alias: "ocaml" },
"text/x-octave": null, "text/x-octave": null,
"text/x-oz": 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-perl": null,
"text/x-pgsql": null, "text/x-pgsql": { loader: import("highlight.js/lib/languages/sql.js"), alias: "sql" },
"text/x-php": null, "text/x-php": { loader: import("highlight.js/lib/languages/php.js"), alias: "php" },
"text/x-pig": null, "text/x-pig": null,
"text/x-plsql": null, "text/x-plsql": { loader: import("highlight.js/lib/languages/sql.js"), alias: "sql" },
"text/x-properties": null, "text/x-properties": { loader: import("highlight.js/lib/languages/properties.js"), alias: "properties" },
"text/x-protobuf": null, "text/x-protobuf": { loader: import("highlight.js/lib/languages/protobuf.js"), alias: "protobuf" },
"text/x-pug": null, "text/x-pug": null,
"text/x-puppet": null, "text/x-puppet": { loader: import("highlight.js/lib/languages/puppet.js"), alias: "puppet" },
"text/x-python": null, "text/x-python": { loader: import("highlight.js/lib/languages/python.js"), alias: "python" },
"text/x-q": null, "text/x-q": { loader: import("highlight.js/lib/languages/q.js"), alias: "q" },
"text/x-rpm-changes": null, "text/x-rpm-changes": null,
"text/x-rpm-spec": 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-rst": null,
"text/x-ruby": null, "text/x-ruby": { loader: import("highlight.js/lib/languages/ruby.js"), alias: "ruby" },
"text/x-rustsrc": null, "text/x-rustsrc": { loader: import("highlight.js/lib/languages/rust.js"), alias: "rust" },
"text/x-sas": null, "text/x-sas": { loader: import("highlight.js/lib/languages/sas.js"), alias: "sas" },
"text/x-sass": null, "text/x-sass": { loader: import("highlight.js/lib/languages/scss.js"), alias: "scss" },
"text/x-scala": null, "text/x-scala": null,
"text/x-scheme": null, "text/x-scheme": null,
"text/x-scss": null, "text/x-scss": { loader: import("highlight.js/lib/languages/scss.js"), alias: "scss" },
"text/x-sh": null, "text/x-sh": { loader: import("highlight.js/lib/languages/bash.js"), alias: "bash" },
"text/x-slim": null, "text/x-slim": null,
"text/x-smarty": 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-solr": null,
"text/x-soy": null, "text/x-soy": null,
"text/x-spreadsheet": null, "text/x-spreadsheet": null,
"text/x-sql": null, "text/x-sql": { loader: import("highlight.js/lib/languages/sql.js"), alias: "sql" },
"text/x-sqlite;schema=trilium": null, "text/x-sqlite;schema=trilium": { loader: import("highlight.js/lib/languages/sql.js"), alias: "sql" },
"text/x-sqlite": null, "text/x-sqlite": { loader: import("highlight.js/lib/languages/sql.js"), alias: "sql" },
"text/x-squirrel": null, "text/x-squirrel": null,
"text/x-stex": null, "text/x-stex": null,
"text/x-stsrc": null, "text/x-stsrc": { loader: import("highlight.js/lib/languages/smalltalk.js"), alias: "smalltalk" },
"text/x-styl": null, "text/x-styl": { loader: import("highlight.js/lib/languages/stylus.js"), alias: "stylus" },
"text/x-swift": null, "text/x-swift": null,
"text/x-systemverilog": 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-textile": null,
"text/x-tiddlywiki": 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-tornado": null,
"text/x-ttcn-asn": null, "text/x-ttcn-asn": null,
"text/x-ttcn-cfg": null, "text/x-ttcn-cfg": null,
"text/x-ttcn": null, "text/x-ttcn": null,
"text/x-twig": null, "text/x-twig": { loader: import("highlight.js/lib/languages/twig.js"), alias: "twig" },
"text/x-vb": null, "text/x-vb": { loader: import("highlight.js/lib/languages/vbnet.js"), alias: "vbnet" },
"text/x-verilog": null, "text/x-verilog": { loader: import("highlight.js/lib/languages/verilog.js"), alias: "verilog" },
"text/x-vhdl": null, "text/x-vhdl": { loader: import("highlight.js/lib/languages/vhdl.js"), alias: "vhdl" },
"text/x-vue": null, "text/x-vue": null,
"text/x-webidl": null, "text/x-webidl": null,
"text/x-xu": null, "text/x-xu": null,
"text/x-yacas": 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/x-z80": null,
"text/xml": null, "text/xml": { loader: import("highlight.js/lib/languages/xml.js"), alias: "xml" },
} }
export default byMimeType; export default byMimeType;