Add indentation rules; use tabs in all snippets

Previously for some reason auto indent doesn't work if I manually typed my code. So I added indentation rules to implement that.

Also for the snippets, in CDATA section I replaced the hard coded spaces at the beginning of a new line with a tab. So the actual indentation matches with users' indentation settings.