<html><head></head><body>I use the "smart indentation" feature and I think it works fine the way it is. It may not be perfect, but in most cases it does exactly what it's supposed to. <br><br><div class="gmail_quote">On July 25, 2014 3:28:21 PM PDT, Matthew Brush <mbrush@codebrainz.ca> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">On 14-07-25 01:01 PM, Colomban Wendling wrote:<br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"> Le 25/07/2014 21:33, Pavel Roschin a écrit :<br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ad7fa8; padding-left: 1ex;"> I'm very wondered how does "smart indentation" feature work. If previous line<br /> is empty, it removes indent assuming that single empty line is an empty indent.<br /> Smart indentation for multiple lines is absolutely awful: it doesn't take into<br /> account internal sub-indents and makes selection "flat".<br /></blockquote><br /> It's a lie, this feature isn't smart, it just sets the same indentation<br /> than the previous line.<br /><br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ad7fa8; padding-left: 1ex;"> Is anybody using this?<br /></blockquote><br /> I doubt it<br /><br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ad7fa8; padding-left: 1ex;"> Under "smart" indentation people assume astyle, php-beautifier and so on:<br /> <a href="http://stackoverflow.com/questions/18828162/smart-auto-indentation-available-in-geany">http://stackoverflow.com/questions/18828162/smart-auto-indentation-available-in-geany</a><br /></blockquote><br /> Yeah, we know we should have a nice (and complex) system for<br /> configurable smart indentation, but every time we tried to think about<br /> it we discovered that some languages are so crazy that it's really not<br /> simple, and probably would require some specific code for some languages<br /> (did I say Haskell?).  And nobody did the filetypes plugins yet :(<br /><br /> However, you might be able to use some indenters tools from Geany using<br /> custom commands to some extent.  In a similar way, I once started a<br /> multi-indernters plugin, but I didn't finish it for various reasons, one<br /> being my lack of much interest in it (I'd rather work on a solution for<br /> configurable and nice thing for Geany than on wrapping gnuindent, astyle<br /> or others, tools I never really used).<br /> If anyone is interested, it's here: <a href="https://github.com/b4n/grind">https://github.com/b4n/grind</a></blockquote><br /><br />And for "smart" indentation/formatting, I have written a plugin which <br />works with C, C++, Objective-C (and I think I remember they talked about <br />JS support) by using clang-format. See:<br /><br /><a href="http://codebrainz.github.io/code-format">http://codebrainz.github.io/code-format</a>/<br /><br />Cheers,<br />Matthew Brush<br /><br /><br /><hr /><br />Devel mailing list<br />Devel@lists.geany.org<br /><a href="https://lists.geany.org/cgi-bin/mailman/listinfo/devel">https://lists.geany.org/cgi-bin/mailman/listinfo/devel</a><br /></pre></blockquote></div><br>
-- <br>
Sent from my Android device with K-9 Mail. Please excuse my brevity.</body></html>