Jump to content

Word wrap: Difference between revisions

→‎{{header|REXX}}: added more comments in the header section. -- ~~~~
(→‎{{header|REXX}}: added more comments in the header section. -- ~~~~)
Line 229:
=={{header|REXX}}==
The input for this program is in a file (named LAWS.TXT).
<br>The default width of the output is ½ of the current terminal width (normally, this would be the window's width), or
<br>if the terminal width (or window's width) is indeterminable, then 40 is used.
<br>No hyphenation (or de-hyphenation) is attempted.
<br>If the specified width is negative, then the output is shown justified (with the absolute value of width).
<br>Words longer than the width of the output are acceptable and are shown, a simple change could be made to issue a notification.
<br>If the specified width is negative, then the output is shown justified to both margins (with the absolute value of width).
<lang rexx>
/*REXX pgm reads a file and displays it (with word wrap to the screen). */
Cookies help us deliver our services. By using our services, you agree to our use of cookies.