문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top