Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我不知道如何在终端中仅更改注释行的字体颜色(以 # 开头)。
当我可以很容易地看到哪些行是注释而哪些行不是时,我发现它更清楚了。
编辑:我正在使用 Nano,我想通过 SSH 从 Mac OS X 的终端连接到我的远程 Ubuntu 机器。
我认为,它与 mac osx 或终端没有任何关系。
你可以为 nano 设置语法高亮。请参阅此页面,例如:Syntax highlighting on nano。