> 
> On Sep 25, 2006, at 7:55, Bryan Harris wrote:
>> I've requested several times that they add a "balance count" to one
>> of the
>> tool bars, so if I type:
>> 
>>    while (@data) {  if ($x) { if ($y
>> 
>> ... the balance count shows:
>> 
>>   +2 {, +1 (
> 
> I agree that would be useful in certain situations. Making it even
> more useful would be if it could show you the upward tree of any
> language structure, not just brackets. So for instance, if I have
> this HTML in my window:
> 
>    ...
>    <table>
>      <thead>
>        <tr>
>          <insertion point>
>        </tr>
>    </table>
>    ...
> 
> the status display would show something like:
> 
>    html > body > table > /thead/ > tr
> 
> to show me both what the structure is at the current point in the
> document, and whether that structure is properly balanced (in this
> case, the thead isn't balanced, so it's marked). Language-specific
> settings could be used to, for example, hide the html and body contexts.

I like this also -- but it's slightly different from what I was suggesting.
My suggestion tells you the status of the whole document.  Your suggestion
seems to indicate you want the status at the cursor position.  Also very
cool, but different.

Under my suggestion, an HTML doc might have a status of "+2 tr, -1 td" to
indicate that you have 2 unclosed tr tags, and 1 unopened td tag (e.g.
"</td>" without a "<td>").

- B



-- 
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>

Reply via email to