Just noticed this issue and adding comments to the beginning of line is possible and it's controlled by this option (you want to set it to `false`)
https://github.com/geany/geany/blob/2ac0280c0c7e76304678c613e0021adb01b7cee0...
You configure it for the language you use using Tools->Configuration files->Filetype configuration.