syntax_highlight library

Classes

Highlighter
The Highlighter class can format a String of code and add syntax highlighting in the form of a TextSpan. Currrently supports Dart and YAML. Formatting style is similar to VS Code.
HighlighterTheme
A HighlighterTheme which is used to style the code.