Peter Wu wrote:
>> What I recommended is use whitespace (Tab preferrably)
>> for indentation and not alignment, so it looks fine with any Tab width.
>
>I use 4 spaces instead of tabs, what you lose in filespace you gain in
>readability.
>
Where's the difference in readability?

if tab is assumed 4 spaces, sometimes, you might type 4 spaces to
gain alignment. From the editor, you won't tell the difference.

however, if you swtich to a different editor such as vim, tab is assumed
8 spaces. then, alignment will become a problem if both tab/space is used.

I suppose vim, and much other editors more advanced than Notepad, are able to set tab size to whatever value is needed. That's why this old grudge against tabs seems obsolete, unless you use to dump code to a old printer or something similar.

What do you mean by "both tab/space is used"? It always has been a bad idea to mix tabs and spaces, like using tabs for indenting to col 8, and using spaces to finish to col 12... Indeed, this is a worst case scenario.

Of course, we can always stick to either tab or space only. but there
will always an exception.

Why? I see a lot of open source code, I rarely, if ever, saw such mix.
If I should find this mix, either I convert all to one kind, or drop the project...

BTW, I miss emacs editor feature to split one same file into two different
windows that you can view the file in one window and modify the same
file in another window. can it be done in scite?

I wrote about the desirability of this feature very recently...

--
Philippe Lhoste
--  (near) Paris -- France
--  http://Phi.Lho.free.fr
--  --  --  --  --  --  --  --  --  --  --  --  --  --
_______________________________________________
Scite-interest mailing list
Scite-interest@lyra.org
http://mailman.lyra.org/mailman/listinfo/scite-interest

Reply via email to