问题
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