如何在 Notepad++ 或其他文本编辑器中查看带有颜色的腻子日志文件?

mar*_*o87 12 notepad++ text-editors colors putty logging

我有一个包含颜色标记的腻子日志文件,例如:

[0m[33mSome colored error text
[35mSome more colored error text
[0mSome stuff
Run Code Online (Sandbox Code Playgroud)

有没有办法轻松查看这些日志文件的颜色?解决方案的加分点:

  • 使用记事本++
  • 不要显示颜色序列(例如 [35m) ,而只是为文本着色

小智 5

您可以安装 MINGW64(Cygwin 也应该可以)并运行:

less -R your_putty_logfile.log

通知-R选项。对我来说它工作得很好。