lexical_code 1.4.0
lexical_code: ^1.4.0 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_codeThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
lexical_code: ^1.4.0Alternatively, your editor might support dart 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';