<div dir="ltr">Hi,<div><br></div><div>Unfortunately Geany does not do language specific indentation.  It currently has a few very simple indentation rules based on usage of {} or : (for Python only)</div><div><br></div><div>
We have had long discussions about configurable approaches, but any that seem to provide a useful improvement also seem to add just as many annoying erroneous situations.</div><div><br></div><div>Coincidently I came across another programmers editor which does do specific indentation, and it was claimed it used 12% of its code, just for indentation!!!</div>
<div><br></div><div>Other IDEs do it based on parsing the code as you type and determining the indentation based on the language construct.  However to remain light and fast Geany does not analyse the code on the fly, and so we are unable to use such a method.</div>
<div><br></div><div>Without wanting to re-ignite the indentation wars, if anybody has a simple, fast and configurable indentation method that does the right thing and does not do the wrong thing please let us know.</div><div>
<br></div><div>Cheers</div><div>Lex</div><div><br></div><div><br></div><div>PS just a note that most methods seem to fail with things like indentation for lines that are continuations of expressions, function calls and similar situations.  Or they only work if you use one specific style of source layout such as GNU style.  Or they fail to respect manually set indentation for situations above.</div>
<div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 11 November 2013 04:23, Doug Darrow <span dir="ltr"><<a href="mailto:dsdarrow01@gmail.com" target="_blank">dsdarrow01@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks for the replies. And kind offers of condolences.<br>
<br>
But I'm afraid I didn't make myself clear. If, in the normal edit window, I type the line 'for i=1, 10 do'<enter> I want it to automatically go to the next line with that line indented 3 spaces. ( or 2 or 4 or whatever the indentations is set to) and when I enter a line 'end'<enter> the 'end' is automatically unindented whatever the setting is.<br>

<br>
I'm aware of using snippets and tabs within macros. It seems with Geany that is used to do this (Geany 1.18 or 1.19) But my memory is not so good these days and I may be wrong. But I'm sure that it used to work in Scite (but does not work now) which uses Scintilla same as Geany. I don't remember how I made it work in Scite or Geany. But both have gone through several upgrades since those days and my memory may be flawed about this.<br>

<br>
If this isn't possible any more, I understand and thank-you for any offers of assistance.<br>
<br>
Doug<br>
______________________________<u></u>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.geany.org" target="_blank">Users@lists.geany.org</a><br>
<a href="https://lists.geany.org/cgi-bin/mailman/listinfo/users" target="_blank">https://lists.geany.org/cgi-<u></u>bin/mailman/listinfo/users</a><br>
</blockquote></div><br></div>