home *** CD-ROM | disk | FTP | other *** search
- ############################################
- File: WordWrap.FPL
- Author: Daniel Stenberg, Volker Gûth and Jesper Skov
- Email: Daniel.Stenberg@sth.frontec.se,
- vgueth@HRZ.Uni-Bielefeld.DE
- jskov@iesd.auc.dk
- Short: Wraps the line at a certain column
- Version: 1.4
- Date: 24.5.95
- Local settings: "wordwrap", "wall_right"
- Global settings:
- Keysequence:
- Type: Hook
- Prereq:
- ############################################
-
- FUNCTION
- When the local setting "wordwrap" is enabled, all outputs are checked if
- they pass the column "wall_right". If they do, they will be wrapped and the
- writing continues on the line below!
-
- BUGS
- It is a hook on Output() which means that only when the check is done only
- when things are written, not backspaced or deleted text. This _can_ although
- be done if anyone just modifies the script a bit!
-
- If you switch on 'wordwrap' and outputs in a line that already is many words
- wider than the right border, the result won't be satisfying! :(
-
- HISTORY
- 1.1 - Set the 'W'-flag in the settings enabling save.
- 1.2 - It doesn't leave a trailing space at the end of line any more!
- 1.3 - Volker improved it, "because the old puts a single punctuation
- mark in the new line and it cuts the Backslash from a LaTeX-command."
- 1.4 - Jesper made it capable of handling multiple words pasted with the same
- Output()
- Daniel made it hook BlockPaste() too, and made any output that makes
- a line longer than 'wall_right' wordwrap the rightmost words even when
- appending text to the middle of a line!
-
- SEE ALSO
- The Format.FPL program!
-