I am just starting to use Netbeans (NetBeans IDE 7.4 (Build 201310111528)). It took a long time to set up but I cannot for the life of me figure out why undefined variables don't get highlighted for PHP and Javascript. I went under options>hints> Language:PHP, and made sure Unitialized Variables was checked off, and Show As:Warning (Check Variable initalized by reference was off). Some errors get properly highlighted while the undefined variables get nothing. Here's an example with a simple program:
<?php
$b=$g+$g; //no error
$a=$sadfhasdf8adhfieiofwffsd; //no error
; //empty statement error
a=a; //syntax error
?>
The weird thing is that if I switch to Java, everything works:
public class JavaApplication2 {
public static void main(String[] args) {
int a=22;
int b= a*c; //cannot find symbol "c" correctly working
}
}