BeIDE text editor add-on which wraps the selected text to fit in a width of 79 characters. It also understands UTF-8 character encoding, block comments, C style comments, and adds extra space between sentences.
Short: Word Wrapper Plugin for the BeIDE.
Author: agmsmith@achilles.net (Alexander G. M. Smith)
Uploader: agmsmith@achilles.net (Alexander G. M. Smith)
Website: http://www.achilles.net/~agmsmith/
Version: 1.0
Type: development/editors/addons
Requires: BeOS 5.0+, BeIDE
AGMSWordWrapper is a BeIDE text editor add-on which wraps the selected text to fit in a width of 79 characters. It also understands UTF-8 character encoding, block comments, C style comments, and adds extra space between sentences.
To use it, select the paragraph of text you want wrapped. All the lines that are partially or fully inside the selected area will be wrapped (so you can be sloppy about making your selection).
Examples:
Here are some before and after examples of word wrapping (please adjust the window for viewing this readme file to be wide enough to show the complete lines of text):
* This is a BeIDE text editor add-on
which wraps the selected text to fit in a
* width of 79 characters. A. It requires the BeIDE which comes with BeOS 5.0.
B. It also understands UTF-8 character encoding, block comments, C style
* comments, and adds extra space between sentences.
* This is a BeIDE text editor add-on which wraps the selected text to fit in a
* width of 79 characters. A. It requires the BeIDE which comes with BeOS 5.0.
* B. It also understands UTF-8 character encoding, block comments, C style
* comments, and adds extra space between sentences.
/* Skip over the remaining bytes.
They should all be middle bytes, which
are between 0x80 and 0xBF. If not,
assume that some bytes were missing
and stop skipping. */
/* Skip over the remaining bytes. They should all be middle bytes, which
are between 0x80 and 0xBF. If not, assume that some bytes were missing
and stop skipping. */
// Find the start and end of
the text to be wrapped, extending the user's
selection to the start
//of the first line and the end of the last line.
// Find the start and end of the text to be wrapped, extending the user's
// selection to the start of the first line and the end of the last line.
Installation:
Just put the AGMSWordWrapper executable into the /boot/develop/BeIDE/plugins/Editor_add_ons directory. You can do this by dragging the AGMSWordWrapper file in the "Installation Files" directory to the symbolic link labelled "Drop AGMSWordWrapper Here to Install It".
Extra Info:
AGMSWordWrapper is released to the public domain. You can do whatever you want with it, at your risk. Please feel free to add features and upload the improved version to BeBits.
- Alex (Ottawa, July 2001)