How to make Emacs show blank spaces

emacswhitespace

How can I make Emacs show blank spaces (like a space, a tab, a line-jump, etc). Many other editors like Kate and Eclipse have this feature and I find it very useful to see when code is indent-broken because of mix of spaces and tabs (particularly Python).

Best Answer

WhiteSpace mode is an Emacs minor mode for visualizing all white space characters in the current buffer. It can be activated with M-x whitespace-mode.

Here is a screenshot of WhiteSpace in action taken directly from the Emacs wiki,

whitespace mode in action

Note: WhiteSpaceMode has now replaced BlankMode