Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Netbeans 7.4 PHP highlighting doesn't work for short tags

In Netbeans 7.4, code like this:

<?php
    echo "some code here";
?>

is properly highlighted, however not like this:

<?
    echo "some code here";
?>

Is there somewhere I can tell Netbeans that <? is equivalent to <?php and should highlight as such?

like image 216
cwal Avatar asked Feb 06 '14 21:02

cwal


1 Answers

Assuming 7.4 is the same as 7.3:

Right-click on your project in your Projects panel, and go to Properties. From there, tick the "Allow short tags" option and click OK.

like image 195
halfer Avatar answered Sep 19 '22 17:09

halfer