From cf7c5d3cb417b29a060a3e6f362df879227ffdc4 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sun, 11 May 2025 19:45:37 +0300 Subject: [PATCH] feat(text): add Nix language --- apps/client/src/services/mime_type_definitions.ts | 2 +- apps/server/src/services/import/mime_type_definitions.ts | 2 +- docs/Release Notes/Release Notes/v0.94.0.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/client/src/services/mime_type_definitions.ts b/apps/client/src/services/mime_type_definitions.ts index 546900c4d..10c73e113 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.ts index b58bd8311..3e7458116 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.md index 78b68c32c..533092ac1 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