Netbeans 7.4 doesn't recognise PHP short tag

Yuri picture Yuri · Dec 23, 2013 · Viewed 14.4k times · Source

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

Answer

高科技黑手 picture 高科技黑手 · Dec 23, 2013
  1. Ctrl-1 to open your Project window
  2. Right-click on your project and click on Properties
  3. Enable Allow short tags (<?)
  4. Press Ok

Click on Allow short tags (<?)