× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



John, I wondered whether I'd been clear enough.

I want to take the following

:p.The CFGDSKHTR command is used to set
run-time control values for the STRDSKHTR
(referred to as the Monitor) and CHKDSKSPC
(referred to as the
Checker) commands.

and have it reformatted to

:p.The CFGDSKHTR command is used to set run-time control values for the
STRDSKHTR (referred to as the Monitor) and CHKDSKSPC (referred to as the
Checker) commands.

This assumes an 80-character record, leaving a blank in position 80 - or not, for UIM.

BTW, :p. is a tag for a paragraph.

I suppose it could concatenate the lines together with a blank between each, then substring to word breaks. Actually, REXX could handle that pretty well. I think, with its WORDS() and WORD() functions. Then put the new lines back where the original ones were.

Does that make more sense?

Thanks

Vern

At 12:03 PM 6/20/2003 -0700, you wrote:
Vern:

I'm not picturing in my mind exactly what you are asking for but maybe this will help.

It sounds like you want to position your cursor to a column (editor command cursorpos xx), go to the previous word (shift-left arrow) and split the line (Alt-S).


From: Vern Hamberg <vhamberg@xxxxxxxxxxxxxxxxxxxxxxxxx>
Reply-To: CODE/400 Discussion & Support <code400-l@xxxxxxxxxxxx>
To: code400-l@xxxxxxxxxxxx
Subject: Reformat macro?
Date: Fri, 20 Jun 2003 11:42:46 -0500

Y'all

Is there a macro or built-in function that will reformat source lines? I need it for editing UIM help. I want to avoid a lot of manual steps using ALT-S and ALT-J and keeping track of record length.

It'd need to break the selected lines at word breaks.

I can do this easily in TextPad. Probably other editors can, too.

TIA

Vern



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.