|
From: Vern Hamberg <vhamberg@xxxxxxxxxxxxxxxxxxxxxxxxx> Reply-To: CODE/400 Discussion & Support <code400-l@xxxxxxxxxxxx> To: CODE/400 Discussion & Support <code400-l@xxxxxxxxxxxx> Subject: Re: Reformat macro? Date: Fri, 20 Jun 2003 15:28:55 -0500
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
_______________________________________________ This is the CODE/400 Discussion & Support (CODE400-L) mailing list To post a message email: CODE400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/code400-l or email: CODE400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/code400-l.
NOTE: WDSc for iSeries disucssion has it's own mailing list.
Information can be found at http://lists.midrange.com/cgi-bin/listinfo/wdsc-l
As an Amazon Associate we earn from qualifying purchases.
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.