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 167988 - PHP long if/foreach highlight opening and closing lines
Summary: PHP long if/foreach highlight opening and closing lines
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Windows Vista
: P3 blocker with 1 vote (vote)
Assignee: issues@php
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-01 17:52 UTC by treffynnon
Modified: 2011-05-26 13:59 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description treffynnon 2009-07-01 17:52:53 UTC
I create PHP templates and it would be nice to be able see which if statement relates to which endif statement by
clicking on them just like you can with HTML elements such as DIV to see its opening or closing partner.

Here is an example of what I am talking about:
    <div class="moduleHolder">
        <div class="actionbar">
            <ul>
                <?php
if($user->checkPermission($_SESSION['cms']['userId'],$shop->permissions[7],$shop->permissionGroup)): ?>
                    <li><a class="add cursor" onclick="shopProducts.addPostageForm();">Add</a></li>
                    <li><a class="edit cursor" onclick="shopProducts.editPostageForm();">Edit</a></li>
                    <li><a class="delete cursor" onclick="shopProducts.deletePostage();">Delete</a></li>
                <?php endif; ?>
            </ul>
        </div>
        <div class="clear"></div>
    </div>

When using if statements with curly braces if(true){ //blah } its fine because you can click on the brace and see its
opening/closing partner, but long ifs and foreachs don't have a system for seeing their opening/closing partner.
Comment 1 Tomasz Slota 2010-02-10 08:46:41 UTC
reassigning to default owner
Comment 2 Filip Zamboj 2010-09-15 12:29:19 UTC
batch reassigning
Comment 3 Petr Pisl 2011-05-26 13:59:01 UTC
Added two weeks ago.