pub-dartlang icon indicating copy to clipboard operation
pub-dartlang copied to clipboard

Improve display of package code samples on pub.dartlang.org

Open DartBot opened this issue 10 years ago • 3 comments

From [email protected] on December 17, 2013 14:55:48

This is just a minor improvement suggestion. Since pub.dartlang.com is the de facto homepage for many Dart packages, it would be great if the code samples there looked as well as possible. Currently, when comparing my little package's github homepage ( https://github.com/filiph/fuzzylogic ) with its pub.dartlang.org homepage ( http://pub.dartlang.org/packages/fuzzylogic ), the github rendering of the same README.md looks much better. I'm therefore a little more likely to link to github than to pub.

Here are the two suggestions:

  • Increase the width (or decrease 's font size) on pub.dartlang.org's to show at least 80 characters per line of code without breaking.
  • Use Dart syntax highlighting.

Original issue: http://code.google.com/p/dart/issues/detail?id=15672

DartBot avatar Sep 29 '14 17:09 DartBot

From @floitschG on December 18, 2013 00:47:41

Status: Triaged
Labels: Area-Pub

DartBot avatar Sep 29 '14 17:09 DartBot

From @nex3 on December 18, 2013 12:23:36

Cc: [email protected]
Labels: -Area-Pub Area-PubSite

DartBot avatar Sep 29 '14 17:09 DartBot

This is a tough one... by my count we manage to squeeze in 76 columns :(. We're already 1px smaller font-size than GitHub. Our main width is 620px; GitHub's is 790px I think. GitHub allows horizontal scrolling in a code block; we don't. Hrm...

srawlins avatar Oct 04 '14 04:10 srawlins