PhpStorm has awesome option for showing whitespace: Preferences / Editor / Appearance / Show Whitespaces