in reply to Re: Pretty Print (already)
in thread Pretty Print

> 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