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 254879

Summary: Need for two kinds of comments
Product: web Reporter: HeikoMamerow
Component: CSS Preprocessors (SASS, LESS, ...)Assignee: Milutin Kristofic <mkristofic>
Status: NEW ---    
Severity: normal CC: tmysik
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:

Description HeikoMamerow 2015-08-31 15:58:57 UTC
Hi, 
please make two kinds of comments:

1) Toggle single line comment: // Blablabla
2) Toggle multi line comment: <!-- Blablabla -->

This is essential e.g. for writing in Sass (scss).


Tnx
:-)




Product Version = NetBeans IDE 8.1 Beta (Build 201508041349)
Operating System = Linux version 3.11.0-17-generic running on amd64
Java; VM; Vendor = 1.8.0_51
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.51-b03
Comment 1 Jiri Kovalsky 2015-09-02 16:15:55 UTC
Toggling multi line comments is already implemented. Just multi-select a text and push Ctrl+Shift+C.
Comment 2 HeikoMamerow 2015-09-02 21:48:03 UTC
(In reply to Jiri Kovalsky from comment #1)
> Toggling multi line comments is already implemented. Just multi-select a
> text and push Ctrl+Shift+C.

...I know this. Need single line comments to! :-)


In SCSS it is very us full to have both:
"Like Sass, SCSS supports both comments that are preserved in the CSS output and comments that aren’t. However, SCSS’s comments are significantly more flexible. It supports standard multiline CSS comments with /* */, which are preserved where possible in the output. These comments can have whatever formatting you like; Sass will do its best to format them nicely.

SCSS also uses // for comments that are thrown away, like Sass. Unlike Sass, though, // comments in SCSS may appear anywhere and last only until the end of the line."
From here: http://sass-lang.com/documentation/file.SCSS_FOR_SASS_USERS.html#comments