Is it possible to set different pattern for comments? My problem is this: with .cpp files comments by geany are //~, but is not unusual to have previous commented files (maybe with // or /* */) So when I try to decomment // lines, it just comments again with this results: //~ // Is it possible to change this behavior?
Many thanks for your amazing job on this IDE :)
Luca
On 20/09/07 09:12:03, Luca wrote:
Is it possible to set different pattern for comments? My problem is this: with .cpp files comments by geany are //~, but is not unusual to have previous commented files (maybe with // or /* */) So when I try to decomment // lines, it just comments again with this results: //~ // Is it possible to change this behavior?
It sounds like you're using the 'Toggle line commentation' keybinding. You can instead use the Comment line(s)/Uncomment line(s) keybindings. By default they are not set, but you can assign them in the preferences dialog. They should work as you want, with just the '//' line comment characters. You can also use multiline comments by editing ~/.geany/ filedefs/filetypes.c (see the manual for details). Under [settings], set:
comment_open=/* comment_close=*/
Regards, Nick