I an new to Geany, could someone help me in stopping the fileheader from indenting with whitespace whenever I use it from the menu bar.
Mike Brooke
On Fri, 22 Jan 2010 10:52:48 -0500 "Michael A. Brooke" mbrooke@magstarinc.com wrote:
I an new to Geany, could someone help me in stopping the fileheader from indenting with whitespace whenever I use it from the menu bar.
It seems to be hardcoded in templates.c:
templates_get_template_fileheader() ... result = make_comment_block(template, ft_id, 8);
So if you build from source, Try setting the 8 to 0.
We should make it configurable by editing a template file IMO.
Regards, Nick
Am Freitag, den 22.01.2010, 16:34 +0000 schrieb Nick Treleaven:
On Fri, 22 Jan 2010 10:52:48 -0500 "Michael A. Brooke" mbrooke@magstarinc.com wrote:
I an new to Geany, could someone help me in stopping the fileheader from indenting with whitespace whenever I use it from the menu bar.
It seems to be hardcoded in templates.c:
templates_get_template_fileheader() ... result = make_comment_block(template, ft_id, 8);
So if you build from source, Try setting the 8 to 0.
We should make it configurable by editing a template file IMO.
I really would appreciate this, yes. It also would solve the issue, that this actually seem to be 8 spaces and doesn't fit to the rest of a document if you use tabs for indentation.
Regards, Dominic
On Fri, 22 Jan 2010 17:58:49 +0100, Dominic wrote:
Am Freitag, den 22.01.2010, 16:34 +0000 schrieb Nick Treleaven:
On Fri, 22 Jan 2010 10:52:48 -0500 "Michael A. Brooke" mbrooke@magstarinc.com wrote:
I an new to Geany, could someone help me in stopping the fileheader from indenting with whitespace whenever I use it from the menu bar.
It seems to be hardcoded in templates.c:
templates_get_template_fileheader() ... result = make_comment_block(template, ft_id, 8);
So if you build from source, Try setting the 8 to 0.
We should make it configurable by editing a template file IMO.
I really would appreciate this, yes. It also would solve the issue, that this actually seem to be 8 spaces and doesn't fit to the rest of a document if you use tabs for indentation.
Yeah, I stumpled upon that code today as well. No idea why we (probably me), added the value 8 at all. Well, at least there is no doubt about we should make that configurable.
Regards, Enrico