Notepad++ file format looks different when opened in Windows Notepad
-
A text file opened in Windows 7 Notepad looks like a continuous line without end of lines i.e. no Word Wrap. However, when I open the file in Notepad++, all contents are in separated lines.
For example:
In Window 7 Notepad:
clientproto udpdev tundh dh2048.pemcaIn Notepad++:
client
proto udp
dev tun
dh dh2048.pem
caHow can I save the file format in Notepad++ style?
Now if I save the file in Notepad++, but when I open the same file in Windows 7 Notepad, it’s in continuous line no “Word Wrap” or EOL style.Thanks,
Milton -
@milton ,
My guess is that the file is using “unix”-style newlines (LF) rather than Windows newlines (CR LF), so MS Notepad doesn’t show them on separate lines. You can tell, because when you load in Notepad++, it will show “Unix (LF)” on the status bar, instead of “Windows (CR LF)”.
If that’s what Notepad++ you want to save the file in a way that other applications (like your Win7 MS Notepad) will recognize the line endings, you can either right click on the “Unix (LF)” and change it to “Windows (CR LF)” then save, or use Edit > EOL Conversion > Windows (CR LF)
(When I tried to replicate in Win 10 22H2 19045, MS Notepad was able to see the LF or even ancient-mac-style CR newlines and still show as separate lines, but since Win7 is a decade out of date, it wouldn’t surprise me if it was lacking that feature.)
-
Yes, you are correct.
Thank you so much for the clarification and instruction.The issue is solved. Thank you
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login