1

When I write code in Netbeans PHP Project that begins with <?hh then the editor removes all the color coding.

For example, the file is called index.php and the color coding works great when the code is like this:

<?php

echo "hello world";

enter image description here

but the color coding disappears when I start with the HackLang <?hh tag like so:

<?hh

echo "hello world";

enter image description here

I tried finding some configuration in Netbeans so that it treats any file with a .php extension as PHP code no matter if I use <?hh or <?php in the start of it.

Does anyone know how to enable color coding in Netbeans irrespective of if I use <?hh or <?php at the beginning of the file?

Software Guy
  • 3,190
  • 4
  • 21
  • 21
  • [Seemingly not](http://forums.netbeans.org/topic59945.html), as of 11 months ago. As a last resort you could probably fix this in the source code, but you'd need to recompile the whole thing. – halfer Feb 22 '15 at 16:06
  • This might help, in case you want to hack NetBeans for support: https://github.com/hhvm/vim-hack/blob/master/after/syntax/php.vim – Claudiu Apr 23 '15 at 23:41

0 Answers0