Option to display control characters in gedit
As said in the other answer you need to install the Draw-Spaces plugin in gedit.Once there, I must say, the plugin options are confusing because the word "space" is used with two different meanings, as separation character (including tab) or as a proper space.
For most applications you need these options.These specific combinations will show leading and trailing proper spaces but not show tabs.This way you can, for example, tell if indentation was not done with tabs.