Skip to main content

syntax_core 0.0.2 copy "syntax_core: ^0.0.2" to clipboard
syntax_core: ^0.0.2 copied to clipboard

TextMate-grammar syntax highlighting in pure Dart. Tokenizes code with VS Code grammars and themes and renders tokens, diffs, HTML, or ANSI. No Flutter required.

0.0.2 #

  • HighlightedDiff.of and HighlightedDiff.tokenize honor budget for parsed patches too, not only for diffs with full texts. A large patch is tokenized a slice at a time, the new side first, with the state carried across slices within a hunk and reset at each hunk as before; lines not tokenized yet are plain. PatchView in syntax_flutter therefore colors long parsed patches between frames instead of in one blocking call.

0.0.1 #

0
likes
160
points
1.92k
downloads

Documentation

API reference

Publisher

verified publisherconcepta.dev

Weekly Downloads

TextMate-grammar syntax highlighting in pure Dart. Tokenizes code with VS Code grammars and themes and renders tokens, diffs, HTML, or ANSI. No Flutter required.

Homepage
Repository (GitHub)
View/report issues

Topics

#syntax-highlighting #textmate #code #highlighter

License

BSD-3-Clause (license)

More

Packages that depend on syntax_core