Oracle Blog

About NetBeans PHP support

CSS: Goto Declaration

There is a new feature that allows navigate to CSS class or id selector declaration from CLASS or ID attribute of an HTML tag. When you go over a usage of a class or id selector with mouse pointer and the CTRL key is hold, then the selector is change to a link. The link navigates to the declaration.

The picture below displays the navigation from td tag in an HTML file to the CSS file, where the header_top class selector is defined.

When there are more declarations that fit the selector name, than a popup window is displayed, where you can select the file. The red (unrelated) mark means that there is no direct connection between the usage and the declaration.

To Azizur:
I use my own build usually, but it's the same as continual build at http://bertram.netbeans.org/hudson/job/PHP-build/ . The php continual build is made from web-main repository. The nightly builds are done from main repository. So the features and fixes that were committed to the web-main are automatically ported to the main repository, when web-main build is not crashing. Unfortunately there was a infrastructure problem last two days and the changes from web-main wasn't ported to the main repository. It should be fixed.

Your exception doesn't have to be result of this. Could you report it in our bugzilla?

I know it's not the best place to ask, but I will do it either way (sorry! :) ).
How can I set xml syntax highlight for svg files? I tried setting xml mime type for svg file extension in options, but to no effect.

Hi all,
I'm sorry for to be quite. I'm very busy with the fixing bug and rewriting the formatter.

The bertram is working at least for me now. There was done a bigger rewrite in the our php editor infrastructure and some tests are failing, we have to fix this asap. This is reason why the latest successful build is older than usually.

@Petr Pisl: Actualy, I want to disable only checking and coloring syntax by CSS in HTML in tags CLASS and ID for two reasons. I'm using my own color syntax and now it is hard to read with this. And the second reason is, I'm using template engine similar to Smarty and this code is marked as error.