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.
I'm using NetBeans IDE 6.5m1 Dev 200807040101 and programming strict object-oriented with PHP 5.2.6. I created a new PHP file to make a simple XHTML web page embedding style (CSS, screen and print) and script (JavaScript, jQuery) tags. There is no PHP code at all because I'm working on the user interface first (presentation layer). I found that the editor giving me a wavy underline and the tooltip is in the context of PHP. Even though, the wavy underline is outside of the PHP tags (<?php ?>) or even when there is no PHP tags. The editor tooltips are "unused" and "missing } function body" with red exclamation mark icon. I'm attaching or linking a zipped file of my underdeveloped PHP file. Try moving the XHTML comments (<!-- -->) to the next line and back. The editor will give a red wavy underline and the tooltip will say "missing } function body". http://www.williamchang.org/debug/netbeans65m1_bug1_20080727.zip
Created attachment 65741 [details] XHTML, CSS embedded, JavaScript embedded
Nevermind, I was missing a curly bracket in the JavaScript code because I was copying and pasting different parts.