Hi

if I look with Chrome at that post

and at the embedded code I notice that the tab width settings are 4 and 8.

And it's also 8 if I copy that code to the textarea for composing a post. ²

Suggestion: Is there a way to homogenize that to one of these? Best with CSS?

There is no need to discuss that mixing tabs and whitespace is a bad habit, or that the mainstream is against tabs for formatting. And I don't really have an opinion which width would be better suited here...°

But I think it would be beneficial for newbies if they saw the same result before and after posting.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

°) My subjective preference is 4, which doesn't mean it's the objective overall solution.

²) Which means the OP didn't notice the problematic display prior to submitting.

update

there is a CSS setting called tab-size

see

and when I use the dev-console in my browser to change the style, it seems to work fine...

plz check with other browsers and discuss the options. :)


In reply to Consistent tab width settings by LanX

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.