mirror of
https://github.com/foss42/apidash.git
synced 2025-09-20 20:19:16 +08:00
Configurable codegen highlight language and file extension
This commit is contained in:
@ -160,7 +160,7 @@ class _ViewCodePaneState extends State<ViewCodePane> {
|
||||
),
|
||||
SaveInDownloadsButton(
|
||||
content: stringToBytes(widget.code),
|
||||
mimeType: "application/vnd.dart",
|
||||
ext: widget.codegenLanguage.ext,
|
||||
showLabel: showLabel,
|
||||
)
|
||||
],
|
||||
@ -175,7 +175,7 @@ class _ViewCodePaneState extends State<ViewCodePane> {
|
||||
child: CodeGenPreviewer(
|
||||
code: widget.code,
|
||||
theme: codeTheme,
|
||||
language: 'dart',
|
||||
language: widget.codegenLanguage.codeHighlightLang,
|
||||
textStyle: kCodeStyle,
|
||||
),
|
||||
),
|
||||
|
Reference in New Issue
Block a user