shiki_flutter 1.1.0 copy "shiki_flutter: ^1.1.0" to clipboard
shiki_flutter: ^1.1.0 copied to clipboard

A TextMate-grammar based syntax highlighter for Flutter, ported from Shiki. Tokenizes source code with real TextMate grammars and Shiki themes and renders it as styled TextSpans.

1.1.0 #

  • Add ShikiTextEditingController: a drop-in TextEditingController that syntax-highlights as you type in any TextField/TextFormField.
  • Add incremental re-tokenization inside ShikiHighlighter: edits re-tokenize only from the first changed line, resuming from cached per-line grammar states and stopping as soon as states converge (internal, powers the controller).

1.0.1 #

  • Improve and fix docs.

1.0.0 #

  • Initial release
11
likes
160
points
231
downloads

Documentation

API reference

Publisher

verified publisherbirju.dev

Weekly Downloads

A TextMate-grammar based syntax highlighter for Flutter, ported from Shiki. Tokenizes source code with real TextMate grammars and Shiki themes and renders it as styled TextSpans.

Homepage
Repository (GitHub)
View/report issues

Topics

#syntax-highlighting #textmate #themes #highlighting #code

License

MIT (license)

Dependencies

flutter, meta, shiki_flutter_dart_engine, shiki_flutter_engine_interface, web

More

Packages that depend on shiki_flutter