From: Mischa POSLAWSKY Date: Wed, 17 May 2017 09:54:15 +0000 (+0200) Subject: source: delineate console width for any preformatted block X-Git-Tag: v1.11~73 X-Git-Url: http://git.shiar.net/sheet.git/commitdiff_plain/9e68141b51a42cd26551f742345972d6523b5736 source: delineate console width for any preformatted block Adopt sample styling for any text source, which should all have a (preferred) limit of 78 characters. Overflows with default tab stop of 8, but all modern browsers except for msie support customisation. --- diff --git a/base.css b/base.css index 0fdf109..1e88637 100644 --- a/base.css +++ b/base.css @@ -102,8 +102,10 @@ pre { display: inline-block; text-align: left; } -#sample > pre { +body > pre { width: 78ch; + tab-size: 4; + -moz-tab-size: 4; padding: 0 1em; border-width: 0 1px; border-style: solid;