On Friday, 24 October 2014 at 07:29:24 UTC, tcak wrote:
Most of us print out codes in posts, especially D codes. I use
tabs
instead of spaces in my code editor, and I directly copy codes
from there into a post. Problem is that when a line is too
long, it
becomes multiline mostly due to the very narrow width of pages
(Forum
takes half of my screen only.)
One of the biggest reason in this problem is the width of tabs.
They
are just unbelievably wide.
CSS has "tab-size" keyword that allows to change to with of
tabs. So,
if the CSS is to be updated for let's say 4 spaces for a tab,
that
will make codes much more good looking I think.
Example:
pre{
tab-size: 4
}
Links:
https://developer.mozilla.org/en-US/docs/Web/CSS/tab-size
http://css-tricks.com/almanac/properties/t/tab-size/
I think the column limit for word wrapping should be increased to
at least 80