Re: [AD] Indentation

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Jason Winnebeck wrote:
The parameters don't line up any longer. When using spaces, you are guaranteed the code is viewed as intended, no matter what the editor's settings. There are some other cases like the above where the tab method breaks down.

I remembered another case where tabs gives a problem -- right side boundary. If you say the max line width is 100 characters or 80 characters, the line length changes when using tabs, but not spaces. This might cause the editor to do wrapping (as in VI) which looks bad, or scrolling, which is inconvient.

I have this same problem with smart tabs, but we resolve the problem by setting the line length conservatively so that people with longer tab sizes will not have to scroll, but people with shorter tabs will not use the entire editor screen.

Jason




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/