This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Created attachment 108979 [details] File having hashbang opened in editor Hashbang (#!/usr/bin/php -q) is marked with warning: Non-space characters found without seeing a doctype first. Expected "<!DOCTYPE html>". From line 1, column 1; to line 2, column 2 (Rule Category: Unexpected characters) The HTML version of the code cannot be determined. You can set a default value for this project. Expected: No warning, HTML syntax checking not turned on.
Everything outside PHP delimiters is considered as HTML content. So this will not be easy to implement.
(In reply to comment #1) > Everything outside PHP delimiters is considered as HTML content. So this will > not be easy to implement. I see. However, you have to admit that assumption is wrong. :) Disable HTML error checking for this file suppresses the warning (and all following errors). I haven't yet bumped into the case in which I have HTML code in a shell script. Shall we resolve this issue as wont fix?
No, it's a serious P4 enhancement, so let it be...maybe in a time, something "brilliant" will come to my mind, how to solve it ;)