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 207882 - Sidebar showing only PHP code from a file.
Summary: Sidebar showing only PHP code from a file.
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-29 16:22 UTC by mrugendrabhure
Modified: 2017-03-09 10:44 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 mrugendrabhure 2012-01-29 16:22:31 UTC
Hi,

Wondering if the IDE can support a side-bar where it shows only the PHP code (tags) from the file ignoring HTML and Javascript etc.

The issue is that there are a number of cases where we often have to maintain / upgrade badly written php code wherein the html and PHP are intermixed throughout the file and it becomes difficult to track the PHP code.

If we can have a sidebar which just has PHP code listed, and we click on an item, it would jump the cursor / highlight the actual PHP line in the main file editor. I believe this feature can make life a bit easier for programmers in similar situation.

Regards,
Mrugendra.
Comment 1 Xenos 2017-03-09 10:44:49 UTC
I'm unsure whether this improvement would be highly useful, but it could be done by having a list of opening PHP tags (<?php) in the navigator. So one can just on the opening tag in one click from there. 

Maybe listing these opening/closing tags inside the PHP node of the navigator? Maybe even inside the right method/function in the navigator, to make it even easier to navigate.

It's not a bad practice to have PHP & HTML code mixed, since PHP is a template language (that's why it uses XML/HTML's processing instruction open and close tags <? ?>) so it makes sense to have such thing.