为什么geany使用#〜在bash的,而不是仅仅#评论? [英] Why does geany use #~ for comments in bash instead of just #?

查看:137
本文介绍了为什么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的,而不是仅仅#评论?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆