Netbeans 7.4 doesn't recognise PHP short tag

2019-02-11 12:24发布

问题:

I recently updated Netbeans to 7.4 version and I actually get plenty of "errors": all the code included in short php tag is not parsed and considered almost like comment (I guess).

Does anyone knows how to fix that?

thanks

回答1:

  1. Ctrl-1 to open your Project window
  2. Right-click on your project and click on Properties
  3. Enable Allow short tags (<?)



回答2:

Maybe you want to uncheck this option.

Option >> Editor >> Uncheck Giving Space After Short Php Tag

Settings ScreenShot