[ 
https://issues.apache.org/jira/browse/NETBEANS-2376?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tomáš Procházka updated NETBEANS-2376:
--------------------------------------
    Component/s:     (was: editor - Hints & Annotations)
                 php - Editor

> Highlight corresponding label/loop statement for "break" and "continue".
> ------------------------------------------------------------------------
>
>                 Key: NETBEANS-2376
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-2376
>             Project: NetBeans
>          Issue Type: Improvement
>          Components: php - Editor
>    Affects Versions: 11.0
>            Reporter: Silviu
>            Priority: Minor
>
> In a similar manner as with brackets highlighting (place the cursor on a 
> bracket, the corresponding one will be highlighted), it would be useful to 
> highlight the matching label/loop for "break" and "continue" statements.
> Take for example this (poorly written) PHP code:
> {{for ($i = 0; $i < 10; $i++) {}}
> {{    for ($j = 0; $j < 10; $j++) {}}
> {{        }}
> {{        if ($i + $j == 10) {}}
> {{           continue;}}
> {{        }}}
> {{        }}
> {{        if ($j % 2) {}}
> {{            continue(2);}}
> {{        }}}
> {{        }}
> {{        echo "$i + $j", PHP_EOL;}}
> {{    }}}
> {{}}}
> It would be useful when highlighting each "continue" statement to visually 
> see which loop block it references. Same with "break".



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to