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
}
52
likes
130
points
81.6k
downloads

Publisher

unverified uploader

Weekly Downloads

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

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

collection

More

Packages that depend on highlight