为什么geany使用#〜在bash的,而不是仅仅#评论?

编程入门 行业动态 更新时间:2024-10-12 22:26:09
本文介绍了为什么geany使用#〜在bash的,而不是仅仅#评论?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

当我选择Geany文本块(编辑bash脚本),然后按Ctrl + E发表评论,Geany插入#〜在每行的开头,而不是仅仅#。为什么呢?

When I select a block of text in Geany (editing a bash script) and hit Ctrl + E to comment, Geany inserts #~ at the beginning of every line, instead of just #. Why?

推荐答案

Geany是添加〜在#标记这些行作为被切换。按Ctrl + E是toggeling默认注释等等

Geany is adding the ~ after the # to mark these lines as been toggled. Ctrl + E is toggeling the comment in default so

# Original Comment print ("Hello world")

变为

#~ # Original Comment #~ print ("Hello world")

,然后再返回

# Original Comment print ("Hello world")

如果没有一些特殊的记号,这将可能很难认识到什么一直是评论,什么一直正常code。

Without some special marker it would might be hard to recognize what has been comment and what has been normal code.

更多推荐

为什么geany使用#〜在bash的,而不是仅仅#评论?

本文发布于:2023-10-09 05:37:01,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1474855.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:而不是   geany   bash

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!