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.

Bug 202575

Summary: Support Internet Explorer conditional comments as syntax
Product: web Reporter: iainhallam
Component: HTML EditorAssignee: Milutin Kristofic <mkristofic>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.0.1   
Hardware: PC   
OS: Windows 7 x64   
URL: http://msdn.microsoft.com/en-us/library/ms537512(v=vs.85).aspx
Issue Type: ENHANCEMENT Exception Reporter:

Description iainhallam 2011-09-23 15:58:20 UTC
Just been working on a site that needed IE-specific fixes, which I included with conditional comments. As per the HTML spec, the comment was greyed out; no completion was done for that area.

However, when the comments are actually active programming constructs, like these, it would be helpful if NetBeans recognised the fact and did something different from just forgetting about them (namely allowing all the editing tools like completion, highlighting, etc., to work inside the IE-only code).

This is a real-world situation that comes up for web site developers on a daily basis, and it would be nice for NetBeans to support it.
Comment 1 Marek Fukala 2011-09-26 12:13:29 UTC
Thanks for the enhancement. Do you happen to have a link to the specification or at least a serious description of pattern? Thanks.
Comment 2 iainhallam 2011-09-26 17:20:52 UTC
(In reply to comment #1)
> Thanks for the enhancement. Do you happen to have a link to the specification
> or at least a serious description of pattern? Thanks.

The URL I gave in the bug report is the MSDN article on them:

http://msdn.microsoft.com/en-us/library/ms537512(v=vs.85).aspx
Comment 3 Marek Fukala 2011-09-27 08:20:38 UTC
Thanks for the link. We'll try to address the issue.