▲ | SAI_Peregrinus a day ago | |||||||||||||||||||||||||
But an editor can just as well let the user choose what width to display spaces at the start of a line. Nothing forces them to be the same width as spaces in the middle of a line. | ||||||||||||||||||||||||||
▲ | eviks 17 hours ago | parent | next [-] | |||||||||||||||||||||||||
Nope, an editor can do that, but it can’t do it just as well because not all spaces at the beginning are indentation, so then you need to have more complicated rules to differentiate between those cases | ||||||||||||||||||||||||||
▲ | em-bee a day ago | parent | prev | next [-] | |||||||||||||||||||||||||
which editor does that? space width is defined by the font, and normally you use monospace fonts. i am unfamiliar with any editor that allows you to choose a different font for spaces. besides, it would only work for indents, it would mess up any alignment of code into columns. | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||
▲ | eikenberry a day ago | parent | prev [-] | |||||||||||||||||||||||||
But don't fixed width fonts, which many consider the best for code, mean fixed width spaces too? | ||||||||||||||||||||||||||
|