[Geany-Users] fileheader comment-type

Johannes Lange johannes.lange at xxxxx
Wed Aug 7 13:27:05 UTC 2013


Hi Colomban,

thanks for your reply!
I'm using version 0.20 at the moment, so that doesn't work (didn't even 
know that it's so outdated). I've got an old openSUSE version, so there 
is no newer version of geany in the repositories at the moment, but I'll 
update my system soon and then try your solution :-) Until then I'll 
just use a workaround with snippets.

Yes, after I sent the mail, I realized that the "[styling]" thing was 
rubbish.

About the indentation: everything in the fileheader is indented with 6 
whitespaces like this:

/*
  *      main.cpp
  *
  *      [license etc.]
  *
  */

Kind regards,
Johannes


------------ /Original-Nachricht/ ------------
*Betreff:* Re: [Geany-Users] fileheader comment-type
*Von:* Colomban Wendling <lists.ban at herbesfolles.org>
*An:* users at lists.geany.org
*Datum:* Wed, 07 Aug 2013 15:05:14 +0200
> Hi Johannes,
>
> Le 07/08/2013 14:41, Johannes Lange a écrit :
>> Hey geany users,
>>
>> I'm trying to change the the fileheader for C++ files to multiline
>> comments (/* ... */) instead of (//).
>>
>> What I've tried so far is to edit "filetypes.cpp" and set:
>> comment_open=/*
>> comment_close=*/
>>
>> This works fine but affects my "toggle-comment" which is not what I want.
> You should have also a "comment_single" setting, which for C++ should be
> set to "//", and it should then normally work like you want.  BTW, this
> is the default, at least for Geany 1.23.  Which version do you use?
>
> Checking the log tells me the separate single-line comment support was
> added in 0.21, but that a bug leading to use single-line comments for
> multiline blocks was fixed in 1.23.
>
>> In the "[styling]" section there are options:
>> comment=comment
>> commentline=comment
>>
>> but I don't know if they can help with my problem and did not find
>> something about it in the documentation.
>> It would be nice if someone knew a solution to this.
> This has nothing to do with your issue, it's only used to chose the
> coloring for syntax highlighting.
>
>> A second question (but not that urgend) would be how to remove the
>> indentation in the fileheader.
> Which indentation?
>
>
> Cheers,
> Colomban
> _______________________________________________
> Users mailing list
> Users at lists.geany.org
> https://lists.geany.org/cgi-bin/mailman/listinfo/users


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.geany.org/pipermail/users/attachments/20130807/1bfb4aff/attachment.html>


More information about the Users mailing list