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 177013

Summary: [68cat] Select word/Select identifier should be embedding aware
Product: editor Reporter: matthies <matthies>
Component: -- Other --Assignee: Milutin Kristofic <mkristofic>
Status: REOPENED ---    
Severity: normal CC: mfukala
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: ENHANCEMENT Exception Reporter:

Description matthies 2009-11-17 11:21:41 UTC

    <div style="padding-left: 1.5em;"> ...

When doing Select Identifier or Select Word within "left", then "left:" becomes selected, i.e. including the colon. Likewise, when doing Ctrl+Shift+Right within left, the colon gets included in the selection.

Expected behavior would be to just select "left", or (for Select Identifier/Select Word) "padding-left".

The editor doesn't necessarily need to know that this is CSS, just that it is within an attribute value, hence trying to match namespaced HTML tag names doesn't make sense there.
Comment 1 Marek Fukala 2010-04-27 13:54:31 UTC
The top level language's select identifier handling is used regardless what the current embedding is.
Comment 2 Marek Fukala 2010-04-27 14:09:24 UTC
In the html case the HtmlSettingsFactory.HTML_IDENTIFIER_ACCEPTOR is used by the editor infrastructure to figure out what is and what isn't a part of "identifier". 

As for html tags, the colon should be a part of the tag's name when there's a namespace prefix.

I'm affraid this issues should be resolved at the editor's level by making the identifier acceptor - infrastructure language embedding aware.
Comment 3 Martin Balin 2016-07-07 07:28:39 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
Comment 4 matthies 2016-07-18 20:33:39 UTC
Still reproducable in current dev build.