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.
dev build 200110180100 Sun JDK 1.3.1 In JSP files, if you type: for(var i=0; i<temp_digits.length; i++) you will get syntax highlighting for <temp_digits which shouldn't be there. As a result ';' is highlighted as an error in the code, which is also false.
That's OK that you get such coloring if your java code is not inside a scriplet. This works correctly is you write it in scriplets.
I'm typing this inside Javascript code.. It shouldn't be flagging it as an error ;)
In such case it is problem of editor (HTML editor bahaves the same way).
Hi, I do not understand the problem. I would like to ask you to attach whole example file on which we will see the problem.
I'm sorry, I cannot quote the entire source-code to you as it's so- called "intellectual property" which belongs to my employer. I doubt they'll want me giving sources away :) :) Basically open a new JSP file and say: "for(var i=0; i<temp_digits.length; i++)" somewhere in the HTML code. You'll see how <t is being interpreted incorrectly and ';' is highlighted as an error.
So, I meant to attach only example, not your production code. If I understand it properly, HTML editor (inside a HTML code) colores <t... as tag and ';' as error - but thats OK, <t... is in HTML tag and ';' should not be inside a tag AFAIK. If there is some change for JSP, editor module does not know it, and web module should handle it on it's own.
You are quite correct, however syntax highlighting should be disabled within <script> </script> tags, which it is not.
Are not Javascript scripts usually put inside an HTML comment ? In that case I suspect it would work in a satisfactory way. A permanent solution would be to provide Javascript coloring feature and use this inside the HTML script tag. So shouldn't this be marked as enhancement ?
You are right; enclosing the script inside an HTML comment should fix the problem but it makes editing quite difficult. I'll open a new enhanceemnt against Javascript syntax highlighting.
Target milestone -> 3.3.1.
OK, if you agreed to fill a new RFE, can you add a reference to it here? I am closing this one.
Resolved for 3.4.x or earlier, no new info since then -> verify.
Resolved for 3.4.x or earlier, no new info since then -> closing.