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.
Summary: | Add option to colour or highlight method calls or invocations. | ||
---|---|---|---|
Product: | javascript | Reporter: | negora <negora> |
Component: | Editor | Assignee: | Petr Pisl <ppisl> |
Status: | NEW --- | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 8.0.2 | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
negora
2014-12-18 08:06:01 UTC
Hi, I'm not sure whether I understand. For me what you described, it is highlighting occurrences. And this feature is in javascript as well. I can be wrong. Could you please attach an example? Hello Petr: I guess that the term "highlighting" may be confusing here, because NetBeans IDE has syntax highlighting (Fonts & Colors → Syntax) and a more general highlighting (Fonts & Colors → Highlighting). So let's refer to the first one as "colouring", if you agree. I was referring to colouring all method and function calls or invocations, not one in particular or its occurrences. In the colouring section for Java (Fonts & Colors → Syntax → Java) there are the options "Method Declaration" and "Method Use", so you can choose the last one to colour only the calls or invocations. If this option existed in JavaScript, this piece of code: var score = normalizeScore (parseInt (document.getElementById ("score").value, 10)); Would have these words coloured in a different colour: normalizeScore parseInt getElementById This option, that sounds trivial, helps a lot not to miss the existence of a method call when there are several ones nested. One can prevent that by "dissecting" the calls, putting one by line. However when you've to read others' code, you can find lots of nested calls that are very complicated to be read :S . Right now, if I set a colour for the item "Method", it's only the method definition what is coloured: function normalizeScore (...) { ... } The calls to that method get the colour from the item "Identifier". Thank you! Thanks for the explanation. Now it is clear. |