[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [StrongED] StrongED 4.69b5 C mode weird indentation



In message <c7aff87053.Willi@xxxxxxxxxxxxxxxxx>
          Willi Theiss <willi.theiss@xxxxxxxxxxx> wrote:

> In message <2695ea6e53.fjgraute@xxxxxxxxx>
>           Fred Graute <fjgraute@xxxxxxxxx> wrote:
>
> > This is probably caused by the addition of the SmartIndent section. The
> > default smart indent size is 2 so that would explain why one space is
> > added - the Tab being the first indent char. [1]
>
> > You could try setting the smart indent size to 1 in the C ModeFile.
> > If that still isn't to your liking then comment out the SmartIndent
> > section.
>
> This has exactly the same effect: there is still one additional space
> inserted before my text.
>
> Commenting out the complete SmartIndent section (or setting the indent
> size to 0) removes any indentation that I have done after the opening
> bracket position.

Yes, I get both the above effects too.

To get rid of this completely you'll need to alter the keybinding for
the Return key in the C ModeFile. In the latest C mode this reads:

  Return   ReindentText(Line,Force) NewLine()

If you change this to:

  Return   NewLine()

then only auto-indent will be performed. That makes it the same as older
C modes, like the one that comes with 4.67.

Cheers,
Fred.

-- 
StrongED Developer
http://www.stronged.iconbar.com/

-- 
To unsubscribe send a mail to StrongED+unsubscribe@xxxxxxxxxxxxxx