Skip to content

Instantly share code, notes, and snippets.

@leewillis77
Created August 22, 2012 13:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leewillis77/3425519 to your computer and use it in GitHub Desktop.
Save leewillis77/3425519 to your computer and use it in GitHub Desktop.
Mixed indentation examples:
foreach ( $foo as $bar ) {
$foo = array ( "this" => "that",
"them" => "three" );
$sql = "SELECT *
FROM foo
WHERE y = z";
}
@leewillis77
Copy link
Author

The indent before $foo on line 5 is a TAB, line 6 starts with a TAB, then 15 spaces.
The indent before $sql on line 8 is a TAB, line 9, and 10 are both a single TAB, followed by the correct number of spaces to line up as desired [Yes my SQL indentation style is fairly non-standard!]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment