Message-Id: Comments: Authenticated sender is From: "Salvador Eduardo Tropea (SET)" Organization: INTI To: Shawn Hargreaves , djgpp AT delorie DOT com Date: Fri, 10 Oct 1997 15:42:10 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: RHIDE suggestion Precedence: bulk Shawn Hargreaves wrote: > Salvador Eduardo Tropea (SET) writes: > >I can make a reformat thing, but in my case I don't need such a thing > >because I look the screen when I write so I ca introduce the ENTER > >without problems. > > Yeah, it is much easier if you just insist on people not being > lazy :-) :-))) > But you have to admit, an automatic reformat would be very > handy for writing documentation files... The last editor have a (VERY STUPID) wrap words mode, it seems to work, I used it to write mails and the text is wrapped correctly. The editor is supposed to be available (I say supposed because until now I didn't tried to download it, my connection is a disaster this week). > >Perhaps I can add something like the editor I'm using right now > >(Pegasus), it just inserts ENTER if I cross some column, but isn't > >smart at all, if I delete things in the above line it doesn't reformat, > >if I join 2 lines it never will cut the line again. That's relative > >easy, perhaps is enough. > > If it is any help, I have some wordwrap code in my editor, that you are > welcome to look at. It works very much like that, but with a slightly > higher level control routine on top of it. I have one routine to split a > line if it is too long, and another to wrap words from the next line > onto the end of the current one, if there is room for them. It isn't > then too hard to write a proper function that scans down through the doc > from whatever line you changed, calling these two in turn to get a 100% > correct reformatting... I don't know because then it can't be used for small parts of a file, for example: A friend at work want to use it inside comments ... then the thing is a little more complex. The other problem is speed, but of course if the user enables such a thing is your responsability ;-). If you want to send me this part of code go ahead I can get some idea. Actually I just cut lines if when you are typing the cursor crosses the wrap column. SET ------------------------------------ 0 -------------------------------- Visit my home page: http://www.geocities.com/SiliconValley/Vista/6552/ Salvador Eduardo Tropea (SET). (Electronics Engineer) Alternative e-mail: set-sot AT usa DOT net - ICQ: 2951574 Address: Curapaligue 2124, Caseros, 3 de Febrero Buenos Aires, (1678), ARGENTINA TE: +(541) 759 0013