On Fri, 2 Mar 2007 16:08:22 -0300, "Alexandre Moreira" alexandream@gmail.com wrote:
On 3/2/07, John Gabriele jmg3000@gmail.com wrote:
On 3/2/07, John Gabriele jmg3000@gmail.com wrote:
On 3/2/07, Enrico Tröger enrico.troeger@uvena.de wrote: [snip]
You can adjust this. There is a variable "comment_use_indent" in each filetype definition file where you can specify whether the comment character(s) should be placed on first column or after indention. Look at http://geany.uvena.de/manual/ch04.html#filetypes_format, there is some documentation for it.
Thanks Enrico.
Actually, just noticed 2 points about the docs you pointed out:
- The 2nd verbatim example in the Description of
comment_use_indent should be
# command_example();
instead of
#command_example();
- The Note says the setting only works for single line comments,
but for me it's working for multi-line selections as well.
I didn't read the docs, but perhaps it's talking about single line, as opposed to block, comments. Like // ... versus /* ... */
Exactly.
Sorry John, I didn't read your mail carefully. Of course, it works also for multi line _selections_. When talking about a single line comment, I referred to // and multi line comments should be /* */ (for C, C++ of course). It doesn't matter whether you have selected one or multiple lines.
Regards, Enrico
-- Get my GPG key from http://www.uvena.de/pub.key