[英]What language option should I use in Notepad++ with my windows host file for readability?
Maybe this is a silly question, but today I was working in my hosts file (C:\windows\system32\drivers\hosts) in notepad++ and would like to use the language formatting.也许这是一个愚蠢的问题,但今天我在 notepad++ 中处理我的主机文件 (C:\windows\system32\drivers\hosts) 并且想使用语言格式。
For example, the first line appears to be a comment例如,第一行似乎是一条评论
# Copyright (c) 1993-1999 Microsoft Corp.
What language do I choose to view the file?我选择什么语言来查看文件?
The hosts file is not written in any programming language. hosts文件不是用任何编程语言编写的。 It's simply plain text in a format easily parseable by certain system and network applications.
它只是纯文本 ,格式易于被某些系统和网络应用程序解析。 Besides, anyone can come up with a parser that treats text delimited by
#
as comment lines. 此外,任何人都可以提出一个解析器来处理由
#
分隔的文本作为注释行。
(And in case you didn't get the hint, choose the option that I highlighted in bold.) (如果你没有得到提示,请选择我以粗体突出显示的选项。)
try Nncrontab language, it's easy to read if you have to maintain big host files.尝试 Nncrontab 语言,如果您必须维护大型主机文件,它很容易阅读。 With comment at the end of the line, the display is better than Perl or ini language.
行尾加上注释,显示效果优于Perl或ini语言。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.