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 231232 - XML tag highlighting inconsistent and annoying
Summary: XML tag highlighting inconsistent and annoying
Status: VERIFIED WORKSFORME
Alias: None
Product: xml
Classification: Unclassified
Component: Text-Edit (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-13 16:16 UTC by everflux
Modified: 2013-08-21 20:07 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
opening tag highlighting (10.85 KB, image/png)
2013-06-13 16:16 UTC, everflux
Details
closing tag highlighting (10.82 KB, image/png)
2013-06-13 16:17 UTC, everflux
Details

Note You need to log in before you can comment on or make changes to this bug.
Description everflux 2013-06-13 16:16:46 UTC
Created attachment 135768 [details]
opening tag highlighting

Product Version: NetBeans IDE Dev (Build 201306122301)

xml tags are inconsistently highlighted, depending on where the cursors is placed.

f.e.
<bean class="de.foo.bar.baz">
                    <property name="clazz" value="java.lang.Integer" />
                    <property name="expressionString" value="payload.reportId" />
                    <property name="resetPeriod" value="1800000" />
                </bean>

If the opening bean is under the cursor the complete opening and closing tag (including all attributes) is highlighted. this can get annoying if many attributes are contained (much yellow on the screen).

I the cursor is placed on the closind tag, only the closing and opening tag excluding all attributes is highlighted. (This is what I would expect for the opening tag as well.)
Comment 1 everflux 2013-06-13 16:17:07 UTC
Created attachment 135769 [details]
closing tag highlighting
Comment 2 Svata Dedic 2013-08-21 07:38:47 UTC
Cannot reproduce in 2013-08-20 build; for all positions inside the opening tag (open/closing brace, tag name, attributes) just the tag markers and tag name are highlighted.
Comment 3 everflux 2013-08-21 20:07:49 UTC
Verified, thanks