From 6efcf1beee2793a3b92fc9f1ced86c4ff37f4a3a Mon Sep 17 00:00:00 2001 From: "codegen-sh[bot]" <131295404+codegen-sh[bot]@users.noreply.github.com> Date: Sat, 31 May 2025 00:47:09 +0000 Subject: [PATCH] Add Dart and Flutter syntax highlighting support (#9346) * Add Dart and Flutter syntax highlighting support - Add dart language configuration for Dart code blocks - Add flutter language configuration for Flutter code blocks - Both use the same dart syntax highlighting from refractor/lang/dart - Maintains alphabetical ordering in codeLanguages object Resolves #8965 * Remove flutter It's not a language --------- Co-authored-by: codegen-sh[bot] <131295404+codegen-sh[bot]@users.noreply.github.com> Co-authored-by: Tom Moor --- shared/editor/lib/code.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/shared/editor/lib/code.ts b/shared/editor/lib/code.ts index 98f6bcfd68..44dee2f50e 100644 --- a/shared/editor/lib/code.ts +++ b/shared/editor/lib/code.ts @@ -51,6 +51,11 @@ export const codeLanguages: Record = { label: "CSV", loader: () => import("refractor/lang/csv").then((m) => m.default), }, + dart: { + lang: "dart", + label: "Dart", + loader: () => import("refractor/lang/dart").then((m) => m.default), + }, docker: { lang: "docker", label: "Docker",