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(text): add Nix language
Elian Dorancf7c5d3cb417
diff --git a/apps/client/src/services/mime_type_definitions.ts b/apps/client/src/services/mime_type_definitions.tsindex 546900c4d7..10c73e1135 100644--- a/apps/client/src/services/mime_type_definitions.ts+++ b/apps/client/src/services/mime_type_definitions.ts@@ -107,7 +107,7 @@ export const MIME_TYPES_DICT: readonly MimeTypeDefinition[] = Object.freeze([{ 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" },+ { 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: "NTriples", mime: "application/n-triples" },diff --git a/apps/server/src/services/import/mime_type_definitions.ts b/apps/server/src/services/import/mime_type_definitions.tsindex b58bd8311d..3e74581169 100644--- a/apps/server/src/services/import/mime_type_definitions.ts+++ b/apps/server/src/services/import/mime_type_definitions.ts@@ -107,7 +107,7 @@ export const MIME_TYPES_DICT: readonly MimeTypeDefinition[] = Object.freeze([{ 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" },+ { 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: "NTriples", mime: "application/n-triples" },diff --git a/docs/Release Notes/Release Notes/v0.94.0.md b/docs/Release Notes/Release Notes/v0.94.0.mdindex 78b68c32c5..533092ac1e 100644--- a/docs/Release Notes/Release Notes/v0.94.0.md+++ b/docs/Release Notes/Release Notes/v0.94.0.md@@ -29,7 +29,7 @@* Code notes:* Updated to a new generation of CodeMirror. Since it's a significant update, bug reports are welcome.* Added the GDScript (Godot) language.- * Added the Nix language.+ * Added the Nix language (and also in code blocks for text notes).* Mermaid diagrams: basic syntax highlight (not all diagram types are supported) and code folding.## 📖 Documentation