This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 39732 - opening/closing tag matching -- highlight matched block
Summary: opening/closing tag matching -- highlight matched block
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-06 23:36 UTC by pierredelisle
Modified: 2016-07-07 08:53 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pierredelisle 2004-02-06 23:36:31 UTC
Currently, opening/closing tag matching simply
hightlights the matching tag. Would be great if
there were an option I could set so that the whole
block between the opening and closing tags could
be highlighted. 

I'd personally find that more useful, because in
many cases the matching tag is not on the screen
and you have to scroll to make sure there is a
matching tag somewhere.

Thanks!
Comment 1 Petr Pisl 2004-02-10 10:11:02 UTC
Hi,

there is shortcut CTRL+[ which place the cursor on the matching
bracket. This is shortcut which works for matching tags as well.

I don't known, what you mean that the block could be highlighted
between the matched tags. Do you mean selected? Or you mean really
highlated for better finding the matching tag. You can select a text
between matching tags with shortcut CTRL+SHIFT+[.
Comment 2 pierredelisle 2004-02-27 00:52:49 UTC
> I don't known, what you mean that the block could be highlighted
> between the matched tags. Do you mean selected? Or you mean really
> highlated for better finding the matching tag. 

I meant highlighted.
Currently, only the matching tag is highlighted (in pink by default
I believe]. I'd personally like to be able to set an option so the
whole block between the matching tags is highlighted (rather than just
the matching tag).

But as you say, using CTRL+SHIFT+[ gives me a similar result
and that's good enough.

Now regarding this:
> there is shortcut CTRL+[ which place the cursor on the matching
> bracket. This is shortcut which works for matching tags as well.

I was hoping that doing CTRL+[ multiple times would allow me
to toggle between the matching brackets. Currently, only
the first CTRL+[ places me at the end of the matching bracket, 
and the subsequent ones have no effect. I think having the
toggle capability would make CTRL+[ much more powerful.
Should I file another RFE? (or maybe I'm just too picky :-)

[Actually, after further testing it looks like the toggle behavior 
I mention above works for JSP tags as well as with directives, 
but it does not work with HTML tags (e.g. <body> ... </body>). 
Bug or intended behavior?]

Some more testing:
Toggle behavior works with:
<%@page contentType="text/html;charset=UTF-8"%>

does not work with:
<%@page pageEncoding="UTF-8"%>





Comment 3 Pavel Fiala 2004-09-29 09:31:41 UTC
If the cursor is positioned on opening or closing tag, it would be
nice to mark the block on the left side by line of suitable color
instead of highlighting text inside block.
Comment 4 Petr Pisl 2004-10-13 11:09:47 UTC
I rewrite the highliting of the matching tags and jumping using CTRL+[
and CTRL+SHIFT+[ in the right way (I hope:)). 

The option for highliting text between the matching tags is still valid.
Comment 5 vasanthan 2008-12-23 12:11:21 UTC
Adding to the conversation, it would be better to have an option of selecting the background colour, of the current 
cursor block.

Thanks
Comment 6 Martin Balin 2016-07-07 08:53:10 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss