<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On 11 November 2013 10:35, James Brierley <span dir="ltr"><<a href="mailto:jmb8710@gmail.com" target="_blank">jmb8710@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Ah, this has reminded me: I forgot to mention, but perhaps it would be possible (for someone) to write a plugin which pipes your code through something such as Uncrustify, which is a modern version of the classic Unix utility ‘cb’. You would still need to hit a button to beautify your code (rather like the XML PrettyPrinter plugin) but at least it might be one way of having configurable indentation without costly on-the-fly parsing.<br>
</blockquote><div><br></div><div>What about <a href="http://www.geany.org/manual/current/index.html#sending-text-through-custom-commands">http://www.geany.org/manual/current/index.html#sending-text-through-custom-commands</a></div>
<div><br></div><div>Ok, you need an extra <ctrl>+a to select all before the keybinding for the command, but two keys isn't too bad :)</div><div><br></div><div>BTW do not use astyle for this, it lies through its teeth about working from a piped stdin, it tries to do a seek on the input and thats not possible on pipes.  I havn't done it for ages, but uncrustify used to work.</div>
<div><br></div><div>Cheers</div><div>Lex</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<br>
I’d have a go at this myself, but for the fact that I’m a CS graduate student (learning all that new stuff is great but why do they have to give you piles of coursework as well? :P)<div class=""><div class="h5"><br>
<br>
James<br>
<br>
-- <br>
"Unix is the worst computer operating system, except<br>
all the others that have been tried."<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>
</div></div></blockquote></div><br></div></div>