highLightSpans function
Implementation
List<InlineSpan> highLightSpans(
String input, {
String? language,
bool autoDetectionLanguage = false,
Map<String, TextStyle>? theme = const {},
TextStyle? textStyle,
int tabSize = 8,
}) {
return _convert(
hi.highlight
.parse(input,
language: autoDetectionLanguage ? null : language,
autoDetection: autoDetectionLanguage)
.nodes!,
theme ?? {},
textStyle);
}