I just created my first gist and set the Tab size to 4 but once I saved it, it got rendered with 8 spaces for some reason.
Horrified about the look, I hit "edit", saw that it was set to 8, set it back to 4, saved it and again - 8...
If GitHub simply doesn't support different Tab indentations (which I realize has been requested for years: https://github.com/isaacs/github/issues/170 ), then at least that drop down box for size should be greyed out when "Tabs" is selected...
But of course I'm hoping that this is all just some... misunderstanding and that there is in fact a way to make proper tab rendering work because... it's kind of a trivial thing.
Solved! Solved! Go to Solution.
The Gist tab size settings only applies to the editor and not to the rendered file. The default tab size is 8. There is no way to permanently change that, however you can modify it for a specific page load by using the
ts=<size> URL parameter.
What a shame (and strange that that URL parameter exists but no UI display setting that does that) but thanks for the confirmation!
Actually, in the case someone else stumbles across this - I got aware that there are workarounds in the form of extensions for Chrome available (e.g. GitHub Custom Tab Size) and this inspired me to develop my own one that integrates directly into GitHub:
"There is no way to permanently change that"
Wrong - there is no way for us users to permanently change it, but Github obviously has the ability to change it from their end, which is something that shouldn't be dismissed. 8 is far too big and ugly for the default size.