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.
Product Version = NetBeans IDE 8.0.2 (Build 201408251540) Operating System = Linux version 3.13.0-43-generic running on amd64 Java; VM; Vendor = 1.8.0_25 Runtime = Java HotSpot(TM) 64-Bit Server VM 25.25-b02 Hi All, 1) I write code <script type="text/javascript"> window.onload = drawChart(); window.onresize = drawChart i want to comment these three line of code with cntrl+shft+c is not works while in Source-> toggle comment is there on click on it still it not comment these three lines I need to give comment separatly. While I found it is due to no end script tag hence in IDE you can hide that Source-> 'toggle comment'. It will be good for all. 2)And one more thing that if I want to comment </script> only in .html page see what happen it not comment at all. first it add <!--</script>--> so it not comment not if i again comment it then gives //<!--</script>--> which is also not comment in html So please try to 1) hide toogle comment option for such a cases 2) else provide commenting to that (i.e. provide commeting these three line or </script> tag only)
Created attachment 152669 [details] IDE log
Reproducible Product Version: NetBeans IDE Dev (Build 201503160001) Java: 1.8.0_40; Java HotSpot(TM) Client VM 25.40-b25 Runtime: Java(TM) SE Runtime Environment 1.8.0_40-b25 System: Linux version 3.13.0-35-generic running on i386; UTF-8; en_US (nb)
Assigning to Roman. Thanks.
1. Such commenting would result in an invalid code: JS placed directly in the HTML and ending </script> tag without opening <script> tag. 2. If you comment out </script> and then toggle comment on the same line, you are inside JS embedding, therefore current behavior (comment the line using JS comment) is expected and correct.