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 <tom@getoutline.com>
This commit is contained in:
codegen-sh[bot]andTom Moor authored and GitHub committed 2025-05-31 00:47:09 +00:00
1 parent caaff1c3d6
commit 6efcf1beee
1 file changed
+5
+5
View File
@@ -51,6 +51,11 @@ export const codeLanguages: Record<string, CodeLanguage> = {
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",