开发者

Unbuffered Multi-line Comments in CoffeeScript?

开发者 https://www.devze.com 2023-04-13 04:42 出处:网络
Correct me if I\'m wrong, the only way to have unbuffered (doesn\'t output to .js) comments in CoffeeScript is

Correct me if I'm wrong, the only way to have unbuffered (doesn't output to .js) comments in CoffeeScript is

# T开发者_开发问答his is the only way to mute this single-line comments

The ### buffers comments for multi-line

### This will be outputted to the .js
    For things like copyright notices.
###

But there's no way to have unbuffered multi-line comments?

# This is the only way to mute
# multiple-lines

Thanks.


Correct. But it's less difficult than it looks, because your text editor likely provides a keyboard shortcut for commenting/uncommenting lines. For instance, in TextMate with jashkenas' bundle, you'd just select the lines you want to comment and hit Cmd+/ to put # in front of each. The same shortcut can also un-comment lines in that fashion.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号