Here are 2 simple scripts to turn word wrap on/off for all open documents.
Turn word wrap on:
Code: Select all
// Pascal script
// Turn on word wrap for all open documents.
// Global variables
var
n: Integer;
// Enter code here
begin
for n := 0 to MainApp.DocumentCount -1 do
begin
MainApp.DocumentIndex := n;
Document.Wordwrap := True;
end;
end.
Code: Select all
// Pascal script
// Turn off word wrap for all open documents.
// Global variables
var
n: Integer;
// Enter code here
begin
for n := 0 to MainApp.DocumentCount -1 do
begin
MainApp.DocumentIndex := n;
Document.Wordwrap := False;
end;
end.