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.
1. Create a plain text file with name "random.cfg" 2. Type "int i;" in it. No highlighing should be shown. 3. Go to Tools->Options->C/C++->Other->C/C++ Header File Extensions and add "cfg" to extensions list. EXPECTED: opened "random.cfg" would get syntax highlighting and will be marked as header file in project view OBSERVED: it is not. Neither reopening file, nor reopening project, nor removing from project and adding back will fix this. WORKAROUND: new extensions works fine after restarting IDE. N.B.: applicable only to trunk version due to http://www.netbeans.org/issues/show_bug.cgi?id=134192
Have a look at http://www.netbeans.org/issues/show_bug.cgi?id=133773 as well. Could be related
see also issue #116111
*** Issue 124249 has been marked as a duplicate of this issue. ***
*** Issue 136978 has been marked as a duplicate of this issue. ***
not repeatable now