flutter_syntax_highlight 0.2.0 copy "flutter_syntax_highlight: ^0.2.0" to clipboard
flutter_syntax_highlight: ^0.2.0 copied to clipboard

Dart-only syntax highlighting in two layers: a pure-Dart tokenizer underneath and a thin widget on top. The tokens rejoin into the exact input, byte for byte.

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add flutter_syntax_highlight

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  flutter_syntax_highlight: ^0.2.0

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:flutter_syntax_highlight/flutter_syntax_highlight.dart';
0
likes
160
points
162
downloads
screenshot

Documentation

API reference

Publisher

verified publisherkihyun1998.com

Weekly Downloads

Dart-only syntax highlighting in two layers: a pure-Dart tokenizer underneath and a thin widget on top. The tokens rejoin into the exact input, byte for byte.

Repository (GitHub)
View/report issues

Topics

#syntax-highlighting #tokenizer #code #text #widget

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_syntax_highlight