From: Shawn Hargreaves Newsgroups: comp.os.msdos.djgpp Subject: Re: RHIDE suggestion Date: Fri, 10 Oct 1997 09:58:18 +0100 Organization: None Distribution: world Message-ID: References: NNTP-Posting-Host: talula.demon.co.uk MIME-Version: 1.0 Lines: 28 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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... >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... -- Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/ Beauty is a French phonetic corruption of a short cloth neck ornament.