SyntaxHighlighter constructor
const
SyntaxHighlighter({
- Key? key,
- required String code,
- CodeLanguage language = CodeLanguage.generic,
- bool showLineNumbers = true,
- bool showCopyButton = true,
- double? maxHeight,
- TextStyle? style,
- Color? backgroundColor,
- BorderRadius? borderRadius,
Implementation
const SyntaxHighlighter({
super.key,
required this.code,
this.language = CodeLanguage.generic,
this.showLineNumbers = true,
this.showCopyButton = true,
this.maxHeight,
this.style,
this.backgroundColor,
this.borderRadius,
});