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

outdated

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
40
points
81.6k
downloads

Publisher

unverified uploader

Weekly Downloads

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

Repository (GitHub)

License

MIT (license)

More

Packages that depend on highlight