回车显示在notepad ++中,而不显示在textpad中? [英] Carriage Return showing in notepad++ but not textpad?

查看:111
本文介绍了回车显示在notepad ++中,而不显示在textpad中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些文本文件被复制到服务器上.我通常使用并喜欢使用notepad ++来查看文本文件,但是在此服务器上,仅安装了textpad.这确实是一种奇怪的行为,但是我注意到当我在记事本++中查看EOL字符时,我可以清楚地看到并搜索CRLF(即\ r \ n).但是,当我在文本键盘中显示相同的文件时,我只能在LF(\ n)上搜索,而在CR(\ r)上没有任何匹配.我是否缺少有关Textpad如何解释EOL字符的内容?

I have some text files copied out to a server. I typically use and prefer notepad++ to look at text files but on this server, only textpad is installed. This is really strange behavior but I noticed that when I view the EOL chars in notepad++ I can clearly see and search for the CRLF (i.e. \r\n). But when I display the same files in textpad, I am able to search only on the LF (\n) and do not have any hits on the CR (\r). Am I missing something on how Textpad is interpreting the EOL chars?

推荐答案

当EOL控制字符不正确时,会发生这种情况. Windows用换行符+换行符表示换行符.

This happens when the EOL control characters are not correct. Windows represents newlines with the carriage return + line feed.

在Notepad ++中,您可以通过选择以下字符来检查这些字符:

In Notepad++, you can check for these characters by selecting:

查看>显示符号> [x]显示行尾

View > Show Symbols > [x] Show End of Line

您需要修改脚本,以便数据的格式如下:

You need to modify your script so your data is formatted like this:

CRLF

这篇关于回车显示在notepad ++中,而不显示在textpad中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆