October 24, 1995


This file contains two zipped files, one with 16 bit source and DLL and 
one with 32 bit source and DLL. Use the one appropriate for your version
of Codewright.

This package contains an event handler and an API call to strip
trailing whitespace from a file.  When you have installed this
package, any spaces or tabs at the ends of lines will be stripped
out, every time you save a file to disk.

To install the package, copy the file STPTRAIL.DLL to your
CWRIGHT directory.  Then add the following line to the [LibPreload]
section of your CWRIGHT.INI file:

	LibPreload=stptrail.dll
	
Then restart Codewright.  The event handler will automatically be
activated, and will operate every time you save a file to disk.
A new API call will also become available: 

	void DLL BufStripTrailingSpace(void)
	
You can bind this to a keystroke or use it from your own DLLs if
you ever want to strip trailing whitespace without saving the
file to disk.


