Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 316068

Summary: Toggle JavaScript comments within HTML-Editor
Product: [WebTools] WTP Source Editing Reporter: gossi <eclipse>
Component: wst.htmlAssignee: wst.html <wst.html-inbox>
Status: CLOSED DUPLICATE QA Contact: Nitin Dahyabhai <thatnitind>
Severity: normal    
Priority: P3 CC: nsand.dev
Version: 3.1   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description gossi CLA 2010-06-07 18:46:33 EDT
Build Identifier: 3.5.2

When toggling javascript source within a <script> tag by hitting ctrl+shift+7 (resp. cmd+7 on a mac) the selected lines don't get commented with // in front of every line. Instead it raises <!-- after <script> and --> before </script>, which is kinda odd. I would have expected, that when operating on my javascript code the IDE behaves similarly regardless in which editor I am.

Reproducible: Always

Steps to Reproduce:
1. With Webtools, create a new HTML-File
2. Put a <script> tag somewhere and write some lines of javascript code
3. Select some (not all, preferably some in the mid) of them and hit ctrl+shift+7 (resp. cmd+7 on a mac)
4. see?

Expected behaviour // in the beginning of each line (And the vice versa behaviour to remove the comments)
Comment 1 Nick Sandonato CLA 2010-06-07 18:54:43 EDT
Hi,

We're already working to a solution for this with Bug 86520. Thanks for your report.

*** This bug has been marked as a duplicate of bug 86520 ***
Comment 2 gossi CLA 2010-06-07 19:02:37 EDT
Ah, wonderful - I searched for different words ;) Anyway I'm happy this issue is adressed. Thank you so much.