rich_code_editor 1.0.5 rich_code_editor: ^1.0.5 copied to clipboard
Now create your own rich code editor with syntax highlight support in Flutter.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add rich_code_editor
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
rich_code_editor: ^1.0.5
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:rich_code_editor/exports.dart';
import 'package:rich_code_editor/rich_code_controller.dart';
import 'package:rich_code_editor/rich_code_field.dart';
import 'package:rich_code_editor/rich_editable_code.dart';
import 'package:rich_code_editor/syntaxt_highlighter_base.dart';