TIP: Click on subject to list as thread! ANSI
echo: power_bas
to: KURT KUZBA (Rcvd)
from: TIM HUTZLER
date: 1996-10-02 10:36:00
subject: Re: Word Wrapping

 TH>   Well, the wordwrap sub is only about 20 lines of code.
 TH>   I want it to wrap a block right of quote markers,
 TH>   like the kind you see in FIDOmail. "MV>"
 th>.............
KK> There is a whole lot more to it yet, then.
The quote mode didn't add much code, but it's not as fool-proof as I
want it to be. If I want to prevent users from fooling around in the
quote area, then that requires lots of changes in several areas of
cursor control. An easier way came to me resently, but I havn't much
time to think it out. In time, it will come to me. 
KK> I have a working version in a QB45 program I am doing. LLED.BAS,
  > Linked List EDitor. It supports 2,000+ lines in the ide and
  > 5,000+ when compiled. It also supports up to ten documents open
  > at once.
You know, I know multiple documents are popular, but I've opted to
roll files out to disk when I want to switch files. Most HD are fase
enough, and the dynamics are not so demanding that rolling files out
is not a problem. It also keeps the files updated to disk more
frequently.
KK> You have to account for wrapping when you are at the end of the
  > line and when you are in the middle of the line or at the start
  > of the line.
I treat it all the same by simply making the graf one string, then
breaking it down again.
KK> You also have to decide where the cursor will be after the wrap,
  > which column of which line.
That, too, is a simple calculation for wrapping changes to the next
line. However, this arrangement does not work right in some cases,
usually if the preceeding lines wrap. The only thing I can think of is
to insert a marker in the string to keep track of the origional cursor
position.
KK> Will auto-indenting be supported?
A special auto-indent is featured in my PB-Edit version to keep track
of FOR/NEXT, DO/LOOP, IF/ELSE/THEN, etc, structures. I don't have any
auto-indent for the regular editor that sprang from it. This editor is
intended to be a mail reader, and intended to keep unneeded chars to a
minimum. In fact, I plan to store the files in a compressed format.
KK> Will you need to add a new line, or will the wrapped text be
  > appended to the following line when you add text from within the
  > body of the line instead of to the end?
Lines are inserted or deleted as needed.
It's a fun exercise that produces a useful product - at least to me.
I use the PB-Edit exclusively. I like the colorful screen, I like the
auto-indent, the book-marks, the compile/run error pointer, and all
the other features I've added as they came to mind.
I use the Edit version to read my QWK archives, but it *is* still
under development. It requires more time than I have with school and
all.
 
--- Maximus/2 3.01
---------------
* Origin: Madman BBS * Chico, California * 916-893-8079 * (1:119/88)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.