Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
client: Fix syntax highlight for shell scripts (closes #583)
Elian Doran38d32813d21b
diff --git a/src/public/app/services/mime_types.js b/src/public/app/services/mime_types.jsindex 96f195e0cd..0aef44ecf2 100644--- a/src/public/app/services/mime_types.js+++ b/src/public/app/services/mime_types.js@@ -5,6 +5,10 @@ import options from "./options.js";*/const MIME_TYPE_AUTO = "text-x-trilium-auto";+/**+ * For highlight.js-supported languages, see https://github.com/highlightjs/highlight.js/blob/main/SUPPORTED_LANGUAGES.md.+ */+const MIME_TYPES_DICT = [{ default: true, title: "Plain text", mime: "text/plain", highlightJs: "plaintext" },{ title: "APL", mime: "text/apl" },@@ -119,7 +123,7 @@ const MIME_TYPES_DICT = [{ title: "Scala", mime: "text/x-scala" },{ title: "Scheme", mime: "text/x-scheme" },{ title: "SCSS", mime: "text/x-scss", highlightJs: "scss" },- { default: true, title: "Shell (bash)", mime: "text/x-sh", highlightJs: "shell" },+ { default: true, title: "Shell (bash)", mime: "text/x-sh", highlightJs: "bash" },{ title: "Sieve", mime: "application/sieve" },{ title: "Slim", mime: "text/x-slim" },{ title: "Smalltalk", mime: "text/x-stsrc", highlightJs: "smalltalk" },