1

I have a document with lots of line to be edited and want to disable selecting the line when I click empty left part of it. Here's a screenshot:

Word screenshot

I tried Notepad++, Notepad, MS Word, Wordpad, Dremweaver however couldn't do what I want and find that kind of option.

EDIT: I'm trying to join thousands of lines in a text file (but not all of them) manually.

Here's a part of the text:

The campaign brought honours and promotion
to many, but for me it had nothing but misfortune
and disaster. I was removed from my brigade and
attached to the Berkshires, with whom I served at the
fatal battle of Maiwand. There I was struck on the
shoulder by a Jezail bullet, which shattered the bone
and grazed the subclavian artery. I should have fallen ...

I want to convert it to:

The campaign brought honours and promotion to many, but for me it had nothing but misfortune and disaster. I was removed from my brigade and attached to the Berkshires, with whom I served at the fatal battle of Maiwand. There I was struck on the shoulder by a Jezail bullet, which shattered the bone and grazed the subclavian artery. I should have fallen ...

8
  • In notepad++ clicking in empty space in any line does not select it. It highlights the current line (which is not the same thing as a selection). Note that moving the cursor between lines with up or down arrow shows exactly the same behaviour. – DavidPostill Oct 13 '15 at 18:57
  • Yeah I know the blue mark indicates that the cursor is inside that line. The first thing I tried was using keyboard arrows. However there are thousands of lines I need to edit (bringing one line to above, but not all). So endkey+rightarrow+backspace isn't what I want. I just wanted to get rid of this nonsense select action and use mouseclick+backspace combination. Thank you for your reply. – onurcano Oct 13 '15 at 21:01
  • It is not very clear what you are actually trying to achieve. If you can clarify your problem we may be able to help. – DavidPostill Oct 13 '15 at 21:04
  • oh, I'm trying to move each line to its above, manually. – onurcano Oct 13 '15 at 21:05
  • You want to join the lines together? Or select a line and move it one line up and the line above down? – DavidPostill Oct 13 '15 at 21:06
1

How do I join lines in Notepad++?

  • Menu "Search" > "Replace" (or Ctrl + H)

  • Set "Find what" to \r\n

  • Set "Replace with" to (empty string)

  • Enable "Regular expression"

  • Click "Find next"

  • Click "Replace" to change the matching EOL or click "Find next" to skip to the next match.

  • Repeat as necessary.

    Image

Before:

1st line 
2nd line 
3rd line 

After:

1st line 2nd line 3rd line 

Further reading

1
  • I'm still caring about line selection issue however thanks for this easy solution. – onurcano Oct 13 '15 at 21:37
0

In Word, you have to click very close the beginning of the line to select it. If you select next to line, but not close, it will not select it and drop any previous selections.

4
  • thank you for your reply, I know it, I wondered if there's a solution that I stated. – onurcano Oct 13 '15 at 20:47
  • Have you tried looking at "Word Options", clicking "Advanced" and then under "Editing options", clear the "When selecting, automatically select entire word check box"? There may be additional options you can review in this location as well. – HighTechGeek Oct 13 '15 at 20:53
  • I just tried what you told. I give up, DavidPostill's solution works fine. – onurcano Oct 13 '15 at 21:46
  • Now that you've explained what you're trying to do, using find and replace all to eliminate all the line returns makes sense, as Davis described. Giving more information up front is always helpful. Glad you got it fixed. – HighTechGeek Oct 13 '15 at 22:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.