Syntax highlighting PHP shell scripts without extension in netbeans

Posted by topdog 561 days ago Questions| php scripts netbeans All

I have a number of shell scripts written in PHP within a project that have no file extension. Currently within netbeans there doesn't appear to be a way to make these scripts be identified as PHP and syntax highlighted. Common methods in different editors seem to be things like modelines but as far as i can tell there is nothing similar in netbeans. Each file has a shebang and php tags to identify them as being a php file. Anyone know a workaround for this? i'm willing to add content to the files to make this work but for a number of reasons i cannot add an extension.

FWIW i'm using the PHP version of netbeans 6.9.1 with the C/C++ plugin to enable syntax highlighting of .sh files

Originally asked by: seengee on Stack Overflow

Discuss Bury


Who Voted for this Question