Slashdot Mirror


User: bdeweese

bdeweese's activity in the archive.

Stories
0
Comments
2
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 2

  1. Re:Rexx and Kedit on Rexx Is Still Strong After 25 years · · Score: 1

    The more and less commands work just like the all command but they either add or subtract to the list of displayed lines.

    You could execute
    all "/*"
    more "*/"

    to find all beginning and ending lines of comments (or you could also execute all "/*" | "*/".

    You could also execute
    all "/*"
    less "*/"

    to find all beginning comment lines that are multiline comments.

    Selective line editing (which is the feature of Kedit that these commands are taking advantage of) works by assigning a value, 0 - 254, to the line and displaying only those lines that match the display criteria.

    So you could write a macro that assigns a line value based on its identation level. You could then execute the command "SET DISPLAY 4 *" to view all lines that are indented 4 or more levels. Much more powerful than any lame folding feature in other editors.

  2. Re:Rexx and Kedit on Rexx Is Still Strong After 25 years · · Score: 1

    I used XEdit/Rexx back during my short mainframe career. And then on DOS, then OS/2, and now Windows. It hasn't been updated for a decade now but it only recently was showing its age. Many modern editors still don't have the features and configurability that Kedit has. Such as the ALL, MORE, and LESS commands, prefix commands, block editing, and of course its Kexx scripting language which was a subset of Rexx.

    Others have described the ALL command but you can't get a feel for its power until you actually see it in use. Not only does it hide all lines that don't match a filter, you can execute commands on just the matching lines. I can copy or delete the matched lines. All other editors that have folding will delete all lines between the matched lines if you highlight them to delete them.

    You can run the DOS version of Kedit as a gui-less text editor similar to sed, only more powerful. I've written many scripts to alter files on a massive scale.