Jump to content

Recommended Posts

Posted
<?php
	if($tab_size == 'too big') {
		use \CSS;
		$to_change->it();
	} else {
		$it_looks = 'stupid';
	}
?>

When pasting code indented with tabs into the forum the indents are too large. It's simple to fix with a bit of CSS:

pre {
	-moz-tab-size: 4;
	tab-size: 4;
}

Could someone with the necessary access add this?

The big indent bugs me so much I usually find/replace the tabs with spaces when posting code.

And as is universally agreed by all quality coders: tabs are much better than spaces :biggrin:

 

  • Like 8
  • 1 year later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...