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?
Opening files from the command-line in a running instance Geany detects if there is an instance of itself already running and opens files from the command-line in that instance. So, Geany can be used to view and edit files by opening them from other programs such as a file manager.
Geany: Geany is not a major power player like many of the other editors in this list. It is defined more by “what it is not” than “what it is.” It is not slow, it does not have a lot of heritage from the old days, it does not have a macro capability, or much of a multi window on buffer capability.
Geany - The Flyweight IDE One the primary reasons for Geany's existence is that there is a need for a decent, GUI, lightweight, cross-platform, flexible and powerful IDE/editor. Many editors meet one or more of these requirements but fall short on others. Geany attempts to hit the sweet spot.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With