highlight 0.7.0 copy "highlight: ^0.7.0" to clipboard
highlight: ^0.7.0 copied to clipboard

Syntax highlighting for Dart with lots of languages and themes support.

example/highlight.dart

import 'package:highlight/highlight.dart' show highlight;

void main() {
  var source = '''main() {
  print("Hello, World!");
}
''';

  var result = highlight.parse(source, language: 'dart');
  var html = result.toHtml();
  print(html); // HTML string
}
47
likes
110
pub points
95%
popularity

Publisher

unverified uploader

Syntax highlighting for Dart with lots of languages and themes support.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

collection

More

Packages that depend on highlight