Hide all except selected lines

Hide all except selected lines

15
Basic UserBasic User
15

    Apr 29, 2005#1

    Is it possible to do the inverse of selecting "Hide/Show Selection" where all the text not selected should be hidden?
    In a large text file, I'd like to be able to work on only a small segment of it and not worry that I may modify some other text.

    6,675585
    Grand MasterGrand Master
    6,675585

      Jul 30, 2006#2

      Yes, with a macro which hides everything above and below the current selection. The answer is very late, but maybe you are still waiting for one. Here is the macro which will do that.

      IfSel
      InsertMode
      ColumnModeOff
      HexOff
      Clipboard 9
      Cut
      "STARTOFSELECTEDBLOCK"
      Paste
      Key HOME
      IfColNumGt 1
      Key HOME
      EndIf
      Key DOWN ARROW
      SelectToBottom
      IfSel
      HideOrShowLines
      EndIf
      Find MatchCase Up "STARTOFSELECTEDBLOCK"
      Key HOME
      IfColNumGt 1
      Key HOME
      EndIf
      Key UP ARROW
      SelectToTop
      IfSel
      HideOrShowLines
      EndIf
      EndSelect
      Find MatchCase "STARTOFSELECTEDBLOCK"
      Delete
      ClearClipboard
      Clipboard 0
      EndIf
      Best regards from an UC/UE/UES for Windows user from Austria