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

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

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

Post by Debugger » Fri Mar 08, 2019 7:05 pm

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: 141
Joined: Sat Oct 27, 2018 11:33 am

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

Post by vanisk » Fri Mar 08, 2019 9:10 pm

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


(Edit: Some texteditors accepts simple \n, but others accepts only \r\n)
You do not have the required permissions to view the files attached to this post.

Debugger
Posts: 530
Joined: Thu Jan 26, 2017 11:56 am

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

Post by Debugger » 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".

vanisk
Posts: 141
Joined: Sat Oct 27, 2018 11:33 am

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

Post by vanisk » Fri Mar 08, 2019 11:37 pm

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

.
CrLF.jpg


(Checked on EmEditor (64bit) 18.6.8 Portable)
You do not have the required permissions to view the files attached to this post.

Debugger
Posts: 530
Joined: Thu Jan 26, 2017 11:56 am

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

Post by Debugger » 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

vanisk
Posts: 141
Joined: Sat Oct 27, 2018 11:33 am

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

Post by vanisk » Sat Mar 09, 2019 12:17 pm

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: 530
Joined: Thu Jan 26, 2017 11:56 am

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

Post by Debugger » Sat Mar 09, 2019 5:00 pm

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: 141
Joined: Sat Oct 27, 2018 11:33 am

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

Post by vanisk » Sat Mar 09, 2019 5:32 pm

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: 530
Joined: Thu Jan 26, 2017 11:56 am

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

Post by Debugger » Sat Mar 09, 2019 6:01 pm

vanisk
EmEditor

1. CTRL+F
2. Enable: Multiline

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

vanisk
Posts: 141
Joined: Sat Oct 27, 2018 11:33 am

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

Post by vanisk » Sat Mar 09, 2019 6:20 pm

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: 530
Joined: Thu Jan 26, 2017 11:56 am

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

Post by Debugger » Sat Mar 09, 2019 6:29 pm

vanisk - You talk well CTRL+ENTER :) Thank You.

vanisk
Posts: 141
Joined: Sat Oct 27, 2018 11:33 am

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

Post by vanisk » Sat Mar 09, 2019 6:35 pm

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

Post Reply