Page 1 of 1

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

Posted: Fri Mar 08, 2019 7:05 pm
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

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

Posted: Fri Mar 08, 2019 9:10 pm
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 1200 times


(Edit: Some texteditors accepts simple \n, but others accepts only \r\n)

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

Posted: Fri Mar 08, 2019 11:16 pm
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".

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

Posted: Fri Mar 08, 2019 11:37 pm
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 1192 times

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


(Checked on EmEditor (64bit) 18.6.8 Portable)

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

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

https://postimg.cc/WhP71WST

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

Posted: Sat Mar 09, 2019 12:17 pm
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

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

Posted: Sat Mar 09, 2019 5:00 pm
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! :?

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

Posted: Sat Mar 09, 2019 5:32 pm
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?

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

Posted: Sat Mar 09, 2019 6:01 pm
by Debugger
vanisk
EmEditor

1. CTRL+F
2. Enable: Multiline

Try to write the text in many lines.
Impossible. Why?

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

Posted: Sat Mar 09, 2019 6:20 pm
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.

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

Posted: Sat Mar 09, 2019 6:29 pm
by Debugger
vanisk - You talk well CTRL+ENTER :) Thank You.

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

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