Author Topic: Highlighting in between brackets/braces/parens  (Read 3497 times)

JSacharuk

  • Community Member
  • Posts: 13
  • Hero Points: 0
Highlighting in between brackets/braces/parens
« on: August 16, 2006, 10:21:33 pm »
So when I place my cursor at a brace/bracket/paren, it highlights the matching one for me. This is nice, but would it be possible to have a setting to highlight the entire intervening area? This is useful for times when the matching brace isn't on the screen, but you still want to get an idea of the scope of the method or whatever that you're looking at. This is especially useful for times when you've got lots of embedded parens (and I run into these lisp-like situations more than I'd care to admit).

I got used to it when I was using emacs, and I'd love to see it in SE.

hs2

  • Senior Community Member
  • Posts: 2736
  • Hero Points: 288
Re: Highlighting in between brackets/braces/parens
« Reply #1 on: August 17, 2006, 09:09:31 am »
You can use this maybe bound to a key
Code: [Select]
_command hilite_matching_paren() name_info(',VSARG2_MARK|VSARG2_READ_ONLY|VSARG2_REQUIRES_MDI_EDITORCTL)
{
   show_matching_paren('Y');
}

Or use the 'selective display' feature...

HS2

Dswag89

  • Community Member
  • Posts: 63
  • Hero Points: 4
Re: Highlighting in between brackets/braces/parens
« Reply #2 on: August 17, 2006, 01:48:42 pm »
Another option you have to get the "scope" of the method would be to hide the current code block to get rid of the contents of the conditional.  Use the View... Hide Code Block menu selection.

Dan