highlight 0.4.1 copy "highlight: ^0.4.1" to clipboard
highlight: ^0.4.1 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;

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

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

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on highlight