mcWrapAtColumn
Mark — Sat, 12/24/2005 - 23:25

This plugin removes extra whitespace (blank characters) between words and wraps lines of selected text at the column specified in Preferences (the default is column 80).
Additionally, in Preferences you can choose to
- Send output to Split View or simply overwrite the selected text
- Wrap lines of text together if separated by one or more blank lines or to wrap each line individually.
- Set up to three different columns to wrap text at.
- Display mcWrapAtColumn in the context (right-click) menu.
This plugin is intended for plain text, not HTML, scripts or other type coding (although it will work). The reason is that HTML, code, etc. typically follows some type of visual structure which will be lost as well as some scripting or programming languages require certain code/commands be together on one line. HTML Tidy is recommended for formating HTML.
This plugin resides on the Tools action bar in HTML-Kit.
Initiating Plugin
Initiate the plugin by clicking on one of the three user defined column settings using the dropdown menu. The dropdown menu displays options for choosing the first, second or third column wrap settings. The actual values are not displayed.

Or, optionally use the context (right-click) menu. This setting is also user defined in the Preferences. The default is to display in the context menu. The actual values of the individual column to wrap on are displayed. Column values shown here have been previously set.

Preferences
Preferences is accessed from the plugins dropdown menu or through the context menu. Column values shown here have been previously set.

Options that can be set are...
- Column Number(s) 1-3
- Three separate column numbers can be set and invoked which the text should wrap at (default is 80). Note that the minimum value allowed is '1'. If set to 0 (zero) or less the value will automatically be reset to '80'. The set values are displayed in the context menu.
- Output Mode
- Whether to send the output to Split View or overwrite the selected text (default is Split View).
- New Line Character Mode
- If set to Loose blocks of text separated by one or more blank lines are treated as a single block of text and wrapped accordingly. If set to Strict then each line of text is treated as a single block of text and wrapped individually. The strict setting is mainly used to maintain lists that shouldn't be merged together. The default setting is Loose.
- Context Menu (right-click menu)
- Set to "Yes" or "No" to either display or not display the context menu. The default is to display it.
Here's an example of the New Line Character Mode setting if set to Loose. Notice the difference in how the last three lines are treated.
...this selection: text text text text text text text text text text text text ...is changed to this: text text text text text text text text text text text text
If the New Line Character Mode is set to Strict then;
...this selection: text text text text text text text text text text text text ...is changed to this: text text text text text text text text text text text text
You can download this plugin on the HTML-Kit web site. Installation instructions, etc. are available there.