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
feat(client/text-note): add highlighting for batch files (closes #830)
Elian Doran064d270ff367
diff --git a/src/public/app/services/mime_types.ts b/src/public/app/services/mime_types.tsindex 524bb30207..e288c7b8f5 100644--- a/src/public/app/services/mime_types.ts+++ b/src/public/app/services/mime_types.ts@@ -31,7 +31,7 @@ const MIME_TYPES_DICT: MimeTypeDefinition[] = [{ 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", codeMirrorSource: "libraries/codemirror/batch.js" },+ { title: "Batch file (DOS)", mime: "application/x-bat", highlightJs: "dos", codeMirrorSource: "libraries/codemirror/batch.js" },{ title: "Brainfuck", mime: "text/x-brainfuck", highlightJs: "brainfuck" },{ default: true, title: "C", mime: "text/x-csrc", highlightJs: "c" },{ default: true, title: "C#", mime: "text/x-csharp", highlightJs: "csharp" },