Re: Subversion Repository for Euphoria
- Posted by Matt Lewis <matthewwalkerlewis at gmail.com> Nov 26, 2006
- 514 views
Robert Craig wrote: > > Ricardo M. Forno wrote: > > However, I think ed indenting is inconsistent because when you edit with > > another editor Euphoria source files generated by ed then the tabs get > > messed up. > > I think this is because ed uses tabs in certain cases and spaces in other > > circumstances, for the same file. > > Unless you change ed.ex, ed uses tab=4 for Euphoria files > as well as .c and .h files. This lets you easily indent your > Euphoria or C code, at 4 spaces per indent *while you are editing*. > > When you save a file with ed, it converts to tab=8, > so two leading tab4's on a line of source in the editor > become one tab8 in the file. I did it this way because > most of the Linux and Windows world assumes > that a tab stored in a file means tab=8. Most editors > let you change this, but many people just leave it as > tab=8, and many printers also assume tab=8. I think > some editors have a "soft tab" that might be 4 when you are typing, > while a "hard tab" in a file means 8. OK, I think this explains my perceived inconsistency. My editor is set to use tab=4, and some of your lines come up as 4 spaces and some as tabs. So it was looking like the tabs weren't properly indented, and the spaces seemed strangely out of place (though now I understand them). > I propose that we keep indenting the Euphoria and C source > code at 4 spaces per indent, but I'm open to suggestion on > how we can avoid "tab wars". > Yeah, I'm open to whatever, so long as we're consistent. Matt