lexical_code 1.7.3 copy "lexical_code: ^1.7.3" to clipboard
lexical_code: ^1.7.3 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_code

With Flutter:

 $ flutter pub add lexical_code

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

dependencies:
  lexical_code: ^1.7.3

Alternatively, 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';
0
likes
160
points
598
downloads

Documentation

API reference

Publisher

verified publisherahmadre.com

Weekly Downloads

Code blocks and syntax highlighting for lexical_core: 15 languages, wire-compatible with Lexical's @lexical/code. Pure Dart.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

lexical_core, meta

More

Packages that depend on lexical_code