remy/jsbin — pull request #269 by karlwestin (2012-07-27 14:15:58+00:00)
Title: Solving the 'mixed tabs & spaces' warnings... (issue #252)

... by setting the codemirror settings more the way they used to be.

Backstory: in CM 2.2, the handling of tabs changed. The setting
'tabMode' does no longer do anything, and by default, codemirror uses
a tab for indentation. That is why the warnings 'mixed tabs and spaces'
starts to show up from JSHint.

Now, there is no good way of disabling those warnings currently, and i
find having modified versions of libraries in the source rather awkward.

This commit restores the behavior of CodeMirror (to only use spaces for
indentation) back to the way it used to be before the CodeMirror
upgrade. I also tried to consider users with their own settings files,
who modified the tabMode option.