pub-dartlang
pub-dartlang copied to clipboard
Improve display of package code samples on pub.dartlang.org
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
From @floitschG on December 18, 2013 00:47:41
Status: Triaged
Labels: Area-Pub
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...