[SOLVED]Line Feed (LF) or Newline - not work

Off-topic posts of interest to the "Everything" community.
Post Reply
Debugger
Posts: 565
Joined: Thu Jan 26, 2017 11:56 am

[SOLVED]Line Feed (LF) or Newline - not work

Post by Debugger »

Line Feed (LF) or Newline - not work


Code: Select all

08.03.2019\nDroga J!\n\nNie jestem najbardziej
08.03.2019
Droga J!

Nie jestem najbardziej

Code: Select all

Message: Cannot find

TextEditor
Last edited by Debugger on Sat Apr 20, 2019 9:34 pm, edited 1 time in total.
vanisk
Posts: 152
Joined: Sat Oct 27, 2018 11:33 am

Re: Line Feed (LF) or Newline - not work

Post by vanisk »

Carriage Return (Cr) & LineFeed (Lf)

\r\n

Code: Select all

08.03.2019\r\nDroga J!\r\n\r\nNie jestem najbardziej
carriage return linefeed notepad++.jpg
carriage return linefeed notepad++.jpg (70.92 KiB) Viewed 8419 times


(Edit: Some texteditors accepts simple \n, but others accepts only \r\n)
Debugger
Posts: 565
Joined: Thu Jan 26, 2017 11:56 am

Re: Line Feed (LF) or Newline - not work

Post by Debugger »

I wonder why it does not work in EmEditor 18.6.6, even though the program has the option "Multiline" in "Search -> Find".
vanisk
Posts: 152
Joined: Sat Oct 27, 2018 11:33 am

Re: Line Feed (LF) or Newline - not work

Post by vanisk »

Debugger wrote: Fri Mar 08, 2019 11:16 pm I wonder why it does not work in EmEditor 18.6.6, even though the program has the option "Multiline" in "Search -> Find".
Check the attached screenshot
1. If advanced option "Treat CR & LF Separately" is enabled, then we have to use \r\n (for newline character)
2. If "Treat CR & LF Separately" is disabled, we can use \n
EmEditor Options.jpg
EmEditor Options.jpg (86.5 KiB) Viewed 8411 times

.
CrLF.jpg
CrLF.jpg (39.06 KiB) Viewed 8411 times


(Checked on EmEditor (64bit) 18.6.8 Portable)
Debugger
Posts: 565
Joined: Thu Jan 26, 2017 11:56 am

Re: Line Feed (LF) or Newline - not work

Post by Debugger »

I tested these options 'Advanced". Even with "Multiline" Enabled it does not work!
See screenshot:

https://postimg.cc/WhP71WST
vanisk
Posts: 152
Joined: Sat Oct 27, 2018 11:33 am

Re: Line Feed (LF) or Newline - not work

Post by vanisk »

Debugger wrote: Sat Mar 09, 2019 11:28 am I tested these options 'Advanced". Even with "Multiline" Enabled it does not work!
See screenshot:

https://postimg.cc/WhP71WST
Either move the cursor to beginning of the document prior to begin a search or

Enable the "Move to Start/End of Document" check box

Also please refer the link
http://www.emeditor.org/en/dlg_find_index.html
Debugger
Posts: 565
Joined: Thu Jan 26, 2017 11:56 am

Re: Line Feed (LF) or Newline - not work

Post by Debugger »

vanisk

Yes, it works now.
But there is another problem.
How to write a few words, in Multiline?
Can not move the cursor down, or the ENTER does not work. :?

You can just paste the text - making it difficult every time! :?
vanisk
Posts: 152
Joined: Sat Oct 27, 2018 11:33 am

Re: Line Feed (LF) or Newline - not work

Post by vanisk »

Debugger wrote: Sat Mar 09, 2019 5:00 pm How to write a few words, in Multiline?
Can not move the cursor down, or the ENTER does not work. :?

You can just paste the text - making it difficult every time! :?
Can you please explain a little bit more?
Debugger
Posts: 565
Joined: Thu Jan 26, 2017 11:56 am

Re: Line Feed (LF) or Newline - not work

Post by Debugger »

vanisk
EmEditor

1. CTRL+F
2. Enable: Multiline

Try to write the text in many lines.
Impossible. Why?
vanisk
Posts: 152
Joined: Sat Oct 27, 2018 11:33 am

Re: Line Feed (LF) or Newline - not work

Post by vanisk »

In EmEditor find window, Enter key is default key for Find Next,
So we have to use Control+Enter instead of Enter for multiline text in Find Window.
Debugger
Posts: 565
Joined: Thu Jan 26, 2017 11:56 am

Re: Line Feed (LF) or Newline - not work

Post by Debugger »

vanisk - You talk well CTRL+ENTER :) Thank You.
vanisk
Posts: 152
Joined: Sat Oct 27, 2018 11:33 am

Re: Line Feed (LF) or Newline - not work

Post by vanisk »

Debugger wrote: Sat Mar 09, 2019 6:29 pm vanisk - You talk well CTRL+ENTER :) Thank You.
You're welcome.
Post Reply