Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 316068 - Toggle JavaScript comments within HTML-Editor
Summary: Toggle JavaScript comments within HTML-Editor
Status: CLOSED DUPLICATE of bug 86520
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.html (show other bugs)
Version: 3.1   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: wst.html CLA
QA Contact: Nitin Dahyabhai CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-07 18:46 EDT by gossi CLA
Modified: 2010-06-07 19:02 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.