Short: Word Wrapper Plugin for the BeIDE. Author: agmsmith@rogers.com (Alexander G. M. Smith) Uploader: agmsmith@rogers.com (Alexander G. M. Smith) Website: http://members.rogers.com/agmsmith/ Version: 1.2 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, tabs, block comments, C style comments, HTML tags, 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). Version 1.2 changes: Added tab stops (set at 4, recompile to change), mostly to help with the OpenTracker Coding Guidelines (http://opentracker.sourceforge.net/guidelines.html). Added a list of words that end in a period but aren't the end of a sentence (Dr. Mr. and a few others). Did a bit of code clean-up. Doesn't consider "<" to be an indent character so that HTML can be formatted without the "<" getting prepended to every line of text. Version 1.1 changes: Add two spaces after single digit (and other non-letter) words at the end of a sentence. So you get "Number 3. Etc." rather than "Number 3. Etc.", but keep a single space after single letters at the end of a sentence. 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, October 2002)