On Fri, Oct 12, 2012 at 9:37 AM, Philippe Lhoste <
Phi...@gmx.net> wrote:
> I don't see that (with my settings).
> I guess that you have some odd settings for the indent and tab settings in
> the cpp.properties file.
I wouldn't call the OP's settings odd without seeing them. I'm
observing the same behavior, and I have no customization of my
cpp.properties file. I don't even use SciTE for C, largely because
its indentation is too broken out of the box, too difficult for me to
figure out how to configure (if indeed there is even a way that would
suit me), and too complex for me to either fix it or write my own.
Clearly, SciTE is using the indentation of the line containing the '{'
to determine the indentation level of the block, regardless of the
indentation of other statements within the block. Either it doesn't
realize that the indentation level of the *logical* line containing
the brace is the one with the function name, or it is ignoring the
concept of logical lines and only considering physical lines.
I am very curious to know how other people have set SciTE up for C.
Do people change the way they break lines up so that SciTE doesn't get
confused, or do they find the magic settings to make SciTE indent
sanely? If the latter, then why aren't THOSE the default settings
which are included with SciTE?
To answer my own question a bit, I suppose historical inertia is a
powerful force, and I know Neil is especially loathe to change default
behavior, since it could break other people's existing setup. But if
there are newer "preferred" settings, they could at least be
recommended in the documentation and/or in comments in the properties
files themselves (as I know sometimes does happen, and maybe I'm just
missing it for C).
I used to have similar questions for Python, but since Python is so
much simpler as far as indentation schemes go, and since its lexer is
not the lynchpin for multitudes of similar languages, I was eventually
able to patch SciTE myself (in what would become the
indent.python.colon setting).
John