如何在配置文件中注释掉和取消注释行

您所在的位置:网站首页 php怎么注释掉一段代码 如何在配置文件中注释掉和取消注释行

如何在配置文件中注释掉和取消注释行

#如何在配置文件中注释掉和取消注释行| 来源: 网络整理| 查看: 265

image

You may have seen instructions that tell you to “uncomment” or “comment out” lines in a configuration or source code file. This is a simple process, but may not be self-explanatory to people that don’t understand the file’s structure.

您可能已经看到说明,告诉您在配置或源代码文件中“取消注释”或“注释掉”行。 这是一个简单的过程,但对于不了解文件结构的人来说可能并非是不言自明的。

The interpreter ignores lines marked as comments, which are only to aid humans in understanding the file. Because of this, comments can be used to disable or enable configuration options in configuration files.

解释器将忽略标记为注释的行,这仅是为了帮助人们理解文件。 因此,注释可用于禁用或启用配置文件中的配置选项。

简短答案 (The Short Answer)

You can “uncomment a line” in a configuration file by removing the # at the start of the line. Or, to “comment out” a line, add a # character to the start of the line. (Note that some languages have different comment formats, so this may not be true if you’re working with a source code file.)

您可以通过删除行开头的#来“取消注释配置文件中的行”。 或者,要“注释掉”一行



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3