2

This is related but different to

Auto-expand TAB character in code formatting

I have seen it several times: beginners' questions like How to loop through a set (not a list) of rules in prolog

It would help a lot if tabs at the beginning of a line would be interpreted as 8 spaces. That is, four spaces for the block and four spaces inside such that some indentation is visible. Currently the only way to fix it is to do a manual edit.

  • 3
    Begin the religious war on tabs vs. spaces in 3..2..1.. – Cole Johnson Nov 13 '13 at 3:07
  • 2
    For that matter, begin the 2, 3, 4 or 8 war. BTW-8 is extremely silly for programing purposes. – dmckee Nov 13 '13 at 4:57
  • @dmckee: I do not care how much the actual indentation actually is, what is the problem here is that no indentation is shown at all in this case. – false Nov 13 '13 at 13:07
  • @false then wouldn't that be a bug? – Cole Johnson Nov 27 '13 at 1:06
  • @ColeJohnson: The situation is almost always: SO-newbies pasting in a program. Looking at in the textarea, looks good; post. Then this code comes up completely unreadable. – false Nov 27 '13 at 9:18
  • Isn't this a problem of the code example being indented with a mixture of tabs and spaces? This of course doesn't solve the problem, but I think that solving it does not lie in deviating from the markdown specification. – Feuermurmel Dec 9 '15 at 0:02

You must log in to answer this question.

Browse other questions tagged .