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.
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.
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.