> Last I looked at that part of the code, tabs were already being expanded. 

Since when? I remember having tab problems before configuring my editor to never use \t for tab.

IIRC the main problem was that the textarea did show differently to preview. (Something like using the old 8 character standard)

> So, if somebody would like something simple to implement, a user setting for tabstop choice when posting might be nice

Are you talking about arbitrary tab stops like column 40 for comments?

I'd personally rather prefer a perltidy button.

Personal preferences can vary too much to be reasonably reflected here.

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!

update

I tried this

print qq(<c>\n\t1tab\n\t\t2tab\nprint "\t\t2tabinquotes"\n</c>)

showing in in the console (gterm) and in the html-textarea (Firefox) like this ( I manually replaced with space)

123456789012345678901234567890

1tab 2tab print " 2tabinquotes"

or using <tt><pre> instead of <c> ¹

123456789012345678901234567890
	1tab
		2tab
print "		2tabinquotes"

but being rendered after preview as

123456789012345678901234567890

1tab 2tab print " 2tabinquotes"

so textarea and console are displaying with tab-stops at 8 char distance, while we transform each \t to 4 spaces.

This should clarify the source of confusion.

footnote

¹ not sure what your browser will display in this case, I see tabstops taking effect in pre-tag


In reply to Re^2: Pretty Print (example updated) by LanX
in thread Pretty Print by jmlynesjr

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.