Why does geany use #~ for comments in bash instead of just #?

会有一股神秘感。 提交于 2019-12-22 06:58:56

问题


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?


回答1:


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")

becomes

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

And back again

# Original Comment
print ("Hello world")

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



来源:https://stackoverflow.com/questions/29233125/why-does-geany-use-for-comments-in-bash-instead-of-just

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!