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 151528

Summary: Comments in HTML / CSS
Product: php Reporter: compucoder <compucoder>
Component: EditorAssignee: rmatous <rmatous>
Status: RESOLVED FIXED    
Severity: blocker CC: mfukala, tmysik
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description compucoder 2008-10-27 20:47:44 UTC
When you use ctrl+c or ctrl+/ when in html it adds php comments not html comments. You get // in front of your html.
That just won't work.

Also, the Add comment is missing completely when editing css files. CSS does support comments which are in the format of
/* */

Also, when inside <style></style> blocks and you use the Add Comment it also gives you PHP style comments.

It does this also for <script> blocks too but that is o.k. since JavaScript uses the same comment style.

Thanks.
Comment 1 Mikhail Matveev 2008-10-29 19:23:10 UTC
Reproducible. 
Comment 2 Tomasz Slota 2009-05-06 16:41:06 UTC
Marku, do you have some plans to address this issue?
Comment 3 Tomasz Slota 2010-02-10 08:45:17 UTC
reassigning to default owner
Comment 4 Marek Fukala 2010-02-10 15:00:15 UTC
BTW, there's already an issue filed agains CSL for this problem AFAIR.
Comment 5 Tomas Mysik 2010-03-17 13:52:59 UTC
(In reply to comment #0)
> When you use ctrl+c or ctrl+/ when in html it adds php comments not html
> comments. You get // in front of your html.
> That just won't work.

Seems to be working now.

One note: please, next time, for each particular problem submit a separate bug. Thanks.

Product Version: NetBeans IDE Dev (Build 100317-c053b412c9b8)
Java: 1.6.0_16; Java HotSpot(TM) 64-Bit Server VM 14.2-b01
System: Linux version 2.6.31-20-generic running on amd64; UTF-8; cs_CZ (nb)