mirror of
https://github.com/outline/outline.git
synced 2026-11-29 00:29:36 +03:00
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:
1 parent
caaff1c3d6
commit
6efcf1beee
1 file changed
+5
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user