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 - Auto Close PHP Estructures even outside the tag ?>
Summary: Auto Close PHP Estructures even outside the tag ?>
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.1.2
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Assignee: Ondrej Brejla
Depends on:
Reported: 2012-06-21 19:05 UTC by joao_neto
Modified: 2013-11-19 03:15 UTC (History)
1 user (show)

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
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.


In code, write:
<?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):

//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():