[Geany] 2 details

spir denis.spir at xxxxx
Tue Feb 21 00:35:52 UTC 2012


On 02/20/2012 09:49 PM, Lex Trotman wrote:
> On 20 February 2012 22:55, spir<denis.spir at gmail.com>  wrote:
>> Hello,
>>
>> 1. Is it possible to have tab used for indentation, not spaces, but the tab
>> key insert spaces elsewhere? For instance ('->' represents a tab, '.' a
>> space, tabwidth 4):
>>
>> if true {
>>   ->  foo.........:= 0
>>   ->  foobarbaz...:= 0
>>   ->  foobar......:= 0
>> }
>
> Afraid not, when its not an indent (ie start of line) tab is, well,
> just a tab character.

Right.

>>
>> (This is the standard style for Go code, and a oft recommended practice:
>> tabs indent, spaces align.)
>
> Yes, it is common because it will preserve alignment between lines of
> the same indent level irrespective of tab size, but not between lines
> of different indent levels.

Yes.

>>
>> 2. I use the C lexer for Go, which works fine (except for [*] below). An
>> issue is Geany automatically inserts " *" at start of lines in multiline
>> comments, like:
>>
>> /*
>>   *
>>   *
>>   *
>>   *
>>   *
>>   * */
>>
>
> Preferences->editor->completions->Automatic continuation of multiline
> comments (RTFM)

Sh*t! I have have searched for a while but missed it.

> Cheers
> Lex

Thank you,
Denis



More information about the Users mailing list