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 214592

Summary: Auto Close PHP Estructures even outside the tag ?>
Product: php Reporter: joao_neto <joao_neto>
Component: EditorAssignee: Ondrej Brejla <obrejla>
Status: NEW ---    
Severity: normal CC: sohorev
Priority: P3    
Version: 7.1.2   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:

Description joao_neto 2012-06-21 19:05:35 UTC
Is a feature request.

When editing an html / php editor does not close automatically the PHP structures if i write ?> and press Enter.

examples:

In code, write:
<select>
<?php foreach($arr as $value): [[HIT ENTER]]

endforeach / / the editor insert endforeach automatically.

However, when writing code like this (which is a common practice among developers):

<select>
//i close the php tag ?> and after i hit ENTER
<?php foreach($arr as $value): ?> [[HIT ENTER]]

The editor does not automatically insert the tag
<php endforeach;?> corresponding.

The same is valid for if(): or while(): or do/while or for():