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 - Need for two kinds of comments
Summary: Need for two kinds of comments
Status: NEW
Alias: None
Product: web
Classification: Unclassified
Component: CSS Preprocessors (SASS, LESS, ...) (show other bugs)
Version: 8.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-31 15:58 UTC by HeikoMamerow
Modified: 2015-09-02 21:48 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

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