Completing a LotusScript %directive automatically

If a script contains a %Rem directive without a matching %End rem directive, LotusScript inserts a new line containing %End rem immediately below the %Rem directive when the Script area is closed or saved, or when a different object or script is selected.