Re: Reformat macro?

Vern Hamberg <vhamberg-Ebbh53c6wcYkzXN11fiE55igCaZBIYHkAL8bYrjMMd8@public.gmane.org>
Newsgroups gmane.comp.systems.as400.code
Message-ID <5.1.0.14.2.20030620172550.02324f28@mail.centerfieldtechnology.com>
John

Thanks for looking at this. I used the split/join combination - it's too 
tedious fro me.

It works well for me to copy the text into TextPad, do the reformat, then 
paste back into CODE. In TextPad, it's select the lines and a Ctrl-Shift-J. 
If there's a blank line both before and after, it's just Shift-Ctrl-J. In 
fact, it advances to the blank line following, then to the next paragraph 
it I repeat the keyboard shortcut. Very fast, very neat.

I regret my feeling that CODE and probably the RSE LPEX editor will 
continue to show their early roots and not have some of these very nice 
features that more recent things have.

Cheers

Vern

At 02:03 PM 6/20/2003 -0700, you wrote:
>Vern:
>
>Thanks for the clarification.
>
>I think I would still do it with recorded macros to be quick.  Something 
>like -  start on the last line home position, cursor up, end, Alt-J, home 
>(repeat).....
>
>To split the lines, cursorpos 80, ctrl-left, Alt-S, down, home (repeat).
>
>I don't have a macro that does exactly what you want but Vincent Greene 
>wrote a comments macro a while back that has a function for formatting a 
>long string of text into comments.  Maybe you could modify it for your 
>purpose.  Let me know if you want a copy.
>
>I think the tricky bit will be selecting the text you want to process.  I 
>never figured out how to just process text that is highlighted.  Most of 
>my macros process the entire file from the starting location or a single 
>line at a time.
>
>John


_______________________________________________
This is the CODE/400 Discussion & Support (CODE400-L) mailing list
To post a message email: CODE400-L-Zwy7GipZuJhWk0Htik3J/[email protected]
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/code400-l
or email: CODE400-L-request-Zwy7GipZuJhWk0Htik3J/[email protected]
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.