SlickEdit Community

SlickEdit Product Discussion => SlickEdit® => Topic started by: JSacharuk on August 16, 2006, 10:21:33 pm

Title: Highlighting in between brackets/braces/parens
Post by: JSacharuk 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.
Title: Re: Highlighting in between brackets/braces/parens
Post by: hs2 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
Title: Re: Highlighting in between brackets/braces/parens
Post by: Dswag89 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