显示 的文本编辑器? [英] Text Editor which shows ?

查看:19
本文介绍了显示 的文本编辑器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个可以显示实际回车和换行符的文本编辑器.

I'm looking for a text editor that can show me the actual carriage returns and newlines.

例如如果我保存这个字符串:"This Is A String"

E.g. if I save this string: "This Is A String"

而不是显示

This
Is
A
String

我正在寻找一些可以显示的文本编辑器

I'm looking for some text editor which will show

This
Is
A
String

我认为我在某个程序中解析文本文件的问题是由换行符/回车符/行尾不一致引起的.

I believe a problem with my text-file parsing in a certain program is being caused by inconsistent newline/carriage return/both on the ends of lines.

我可以制作一个可以读取文件并以该格式显示的程序,但我认为如果有人知道已经可以这样做的程序会更容易.

I could just make a program which can read a file and display it with that formatting, but I figured it'd be easier if anyone knew of one that can already do it.

谢谢!


忘记指定我在 Windows 上,安装 Cygwin 并不是一个真正的选择.否则我会使用 vi 或 vim.
此外,如果有一种方法可以在已经安装的 PSPad 中执行此操作,如果您也知道这一点,那就太棒了.谢谢!


Forgot to specify I'm on Windows, and installing Cygwin isn't really an option. Otherwise I would use vi or vim.
Also, if there's a way to do this in PSPad, which is already installed, it would be awesome if you knew that too. Thanks!

推荐答案

使用 Notepad++,可以显示行尾字符.它显示了 CR 和 LF,而不是 " " 和 " ",但它明白了这一点.但是,它仍然会插入换行符.但是您确实可以看到行尾字符.

With Notepad++, you can show end-of-line characters. It shows CR and LF, instead of " " and " ", but it gets the point across. However, it will still insert the line breaks. But you do get to see the line-ending characters.

要为此使用 Notepad++,请打开查看"菜单,打开显示符号"滑出,然后选择显示所有字符"或显示行尾字符".

To use Notepad++ for this, open the View menu, open the Show Symbols slide out, and select either "Show all characters" or "Show end-of-line characters".

这篇关于显示 的文本编辑器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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