classify_dart 0.1.0 copy "classify_dart: ^0.1.0" to clipboard
classify_dart: ^0.1.0 copied to clipboard

Dart 1 only

A library for classifying Dart.

classify_html #

A Dart classifier in Dart. Parses a string of Dart and wraps each token (keyword, identifier, string, etc) with a span and a defined set of CSS classes. Used to add syntax coloring to documentation and code examples.

Installation #

Add this to your pubspec.yaml (or create it):

dependencies:
  classify_dart: any

Then run the Pub Package Manager (comes with the Dart SDK):

pub install

Usage #

import "package:classify_dart/classify_dart.dart";

main() {
  print(classifyDart("void main() { print('Hello World'); }"));
}
0
likes
10
points
24
downloads

Publisher

unverified uploader

Weekly Downloads

A library for classifying Dart.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

analyzer_experimental

More

Packages that depend on classify_dart