<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On 20 December 2013 10:42, 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello everyone,<br>
<br>
I might just be being dense, but I can’t seem to find any hard info about this, so I’ll just throw it out there.<br>
<br>
Suppose I’m writing a function such as the following C/Java-ish pseudocode (the spurious symbols will be explained in due course):<br>
<br>
void some_function(int foo, double spam)<br>
{<br>
        int pointless_var = 0xD00D; *[1]*<br>
<br>
        while (HELL_HASNT_FROZEN_OVER) {<br>
<br>
                if (some_condition) {<br>
<br>
                        do_something(); *[2]*<br>
                }<br>
<br>
                else {<br>
<br>
                        do_something_else(); *[3]*<br>
                }<br>
<br>
        }<br>
<br>
        return;<br>
}<br>
<br>
Now, what would be useful is, to give some concrete examples, when the cursor is at position *[1]*, everything between some_function’s braces would be highlighted in some way, say with a slightly off-white background; at position *[2]* everything between the if statement’s braces would be highlighted, and at *[3]* — you guessed it — everything within the else block would be highlighted. In other words, the extent of the scope of declarations would always be highlighted.<br>

<br>
Would it be possible in any way to extend the brace matching capabilities of Geany to make anything like this possible? Of course, in some languages scope is more complicated than “everything between a { and a }” but even something this simple and stupid would be useful in a lot of cases.<br>

<br>
I should point out that this was prompted by me writing quite a lot of Lisp, and occasionally getting ‘Lost In Silly Parentheses’, but I presented a C-esque example for the benefit of anyone who would rather eat their own toenails than program in Lisp.<br>
</blockquote><div><br></div><div>Note that highlighting matching bracket works for parens too, so you could make the style for that ***very*** visible to help with the Lisp problems.</div><div><br></div><div>Cheers</div><div>
Lex</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Anyway, just wondering if the various components of Geany can be persuaded to make something like this possible, whether that means me writing a patch or something else.<span class="HOEnZb"><font color="#888888"><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>
</font></span></blockquote></div><br></div></div>