The Swift forums render tabs in code blocks as 8 spaces wide. It's pretty restricting given how narrow the UI is, and differ from Xcode, which defaults to 4 spaces.
Could we change it?
Sample:
class MyClass {
func aFunction() {
for i in 1...10 {
print("This is getting pretty wide!")
}
}
}
I haven't seen consensus on this in the Swift community. The standard library defaults to 2 spaces, Xcode defaults to tabs, but in any case, I think space-gang and tab-gang can agree that linux kernel 8-space tabs is tooo wiiiiide
Chrome Version 80.0.3987.163 (Official Build) (64-bit)
Safari Version 13.1 (15609.1.20.111.8)
I wonder if it's being caused by one of my add-ons or style sheets. It's not something I've intentionally altered.
If you're after a specific width why not use spaces?
Well the whole benefit is that users could decide for themselves on their end, though Discourse doesn't seem to have a setting for that (that I can find)
Looking at the CSS being used here, it seems that Discord is setting tab-size to 4, but according to this page Firefox currently only supports that property with the -moz- prefix. Discord would need to add the prefixed property as well, or Firefox would need to start supporting the unprefixed property.