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
}
50
likes
40
pub points
95%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

License

MIT (license)

More

Packages that depend on highlight