lexical_code 1.7.4
lexical_code: ^1.7.4 copied to clipboard
Code blocks and syntax highlighting for lexical_core: 15 languages, wire-compatible with Lexical's @lexical/code. Pure Dart.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add lexical_codeWith Flutter:
$ flutter pub add lexical_codeThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
lexical_code: ^1.7.4Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:lexical_code/lexical_code.dart';