Results 1 to 6 of 6
  1. #1
    Star Lounger
    Join Date
    Mar 2001
    Posts
    85
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Selecting a rectangle of text (97)

    how can i remove a space character from the start of every line of a document. If I could select a rectangular shape 1cm wide & several page deep (ie the start of every line) then I could easily search & replace. But I don't think there's any way to select an area this way?

  2. #2
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Selecting a rectangle of text (97)

    Press and hold the Alt key and then use the mouse to drag out your rectangular area.

    StuartR

  3. #3
    Star Lounger
    Join Date
    Mar 2001
    Posts
    85
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Selecting a rectangle of text (97)

    Well that started off looking promising, and using the alt key I can now for instance select a rectangular block of text and format it or something.
    But when I tried search & replace Word ignored my selection, and instead carried out the function on the whole document.
    Once Search & Replace had been carried out the area which was selected was not my original rectangular selection, but the whole document (in other words linse which I had only partially selected were now wholly selected.

  4. #4
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Selecting a rectangle of text (97)

    > that started off looking promising

    It did what you originally said you needed. You could delete the first character from every line using that method.

    What exactly are you trying to do?

    StuartR

  5. #5
    Star Lounger
    Join Date
    Mar 2001
    Posts
    85
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Selecting a rectangle of text (97)

    But what if I want to use the replace function instead of hitting delete (because for example in some lines of text there might be a character I want to retain). Using search&replace I can eliminate all the space characters yet retain whatever I want to retain.

  6. #6
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Selecting a rectangle of text (97)

    If you want to replace Space Characters at the beginning of lines then you can use Search and Replace by selecting the entire document
    Find: <span style="background-color: #FFFF00; color: #000000; font-weight: bold">^p </span hi> (Paragraph mark followed by space)
    Replace with: <span style="background-color: #FFFF00; color: #000000; font-weight: bold">^p</span hi> (Just a paragraph mark)
    Replace All

    StuartR

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •