Hi guys. Is there a way to select a block of text in /free mode and hit tab to indent the text in websphere? This is killing me
Announcement
Collapse
No announcement yet.
Indent block of text
Collapse
X
-
Re: Indent block of text
Hi fjleon:
I don't know about Websphere but Craig Ruthledge has some freeware at his site: (look under utilities)
[quote]
Number Source - Reformat /Free (JCRNUMB)
Type choices, press Enter.
RPG program name: . . . . . . . Name
Source file: . . . . . . . . . . QRPGLESRC Name, QRPGLESRC
Library: . . . . . . . . . . . *LIBL Name, *LIBL
Highlight comment lines: . . . . *YES *YES, *NO
Match ENDxx statements: . . . . *YES *YES, *NO
Reformat RPG/free indentation: *YES *YES, *NO
Spaces for indent level: . . . . 3 Number
[/qoute]
Hope This Helps
GLSThe problem with quotes on the internet is that it is hard to verify their authenticity.....Abraham Lincoln
-
Re: Indent block of text
use the old SEU block commands...they work in the lpex editor.
Code:RRx moves x number of spaces to the right LLx moves x number of spaces to the left
I'm not anti-social, I just don't like people -Tommy Holden
Comment
-
Re: Indent block of text
how about a simple cut & paste?Regards
Kit
http://www.ecofitonline.com
DeskfIT - ChangefIT - XrefIT
___________________________________
There are only 3 kinds of people -
Those that can count and those that can't.
Comment
-
Re: Indent block of text
Look under Windows/ Preferences /LPEX and Windows/Preference/Remore Systems/ Remote Systems/ILE RPG
There are options to allow the SEU commands and also for auto-indent in free. I haven't tried it with "old" text, but it does work with new lines. (Maybe a cut & paste would work, once you get the option set)
Comment
-
Re: Indent block of text
Put the cursor in the top left corner of the block of text you want to shift and hit [ALT]+[R]. Now drag the cursor to the bottom right corner of the block you want to shift. Then press [SHIFT]+[F7] to go left or [SHIFT]+[F8] to go right one character at a time. There are other options available by right clicking in the editor and looking at the "with selected" option. It is possible to comment out a chunk of code by selecting a rectangle two characters wide and doing a fill selection with a '/'. You might have to shift everything along two characters first but it can be a lot quicker depending on the size of the block of code.Ben
Comment
-
Re: Indent block of text
I know this thread was a while back, but I've just got to say that this helped me out a whole bunch. A lot of times, I'll have a lot of code to copy and paste. Then that whole block of code is 5 spaces too far to the left, or something. Then, I have to do something like HOME, SPACEBAR, SPACEBAR, SPACEBAR, SPACEBAR, SPACEBAR, DOWN ARROW over and over again. The [ALT] + R trick with [ALT] + [F7]/[F8] works magnificently!
Comment
Comment