[Geany] Customizing comment pattern
Nick Treleaven
nick.treleaven at xxxxx
Thu Sep 20 11:07:10 UTC 2007
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
More information about the Users
mailing list