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 165397

Summary: select code action should travers embedded langages
Product: editor Reporter: Jindrich Sedek <jsedek>
Component: CSL (API & infrastructure)Assignee: Svata Dedic <sdedic>
Status: NEW ---    
Severity: blocker CC: mfukala
Priority: P2    
Version: 6.x   
Hardware: Sun   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description Jindrich Sedek 2009-05-18 13:06:18 UTC
use this code in HTML file:
-------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <title></title>
        <script>
            function f(){
                |
            }
        </script>
    </head>
    <body>
            
    </body>
</html>
-------------------
set cursor position at place of "|" 
invoke select code action (Alt+Shift+.) - pieces of javascript are being selected - last selection is over whole 
javascript code

it would be good if the select code action continues with HTML blocks - after selecting whole javascript code
the section <script> ... </script> would be selected and than higher HTML blocks as while invoking select code action 
in HTML code