CoffeeScript中的无缓冲多行注释?

Qua*_*Van 8 syntax comments multiline unbuffered coffeescript

如果我错了,请纠正我,在CoffeeScript中使用无缓冲(不输出.js)注释的唯一方法是

# This is the only way to mute this single-line comments
Run Code Online (Sandbox Code Playgroud)

###多行缓冲区的意见

### This will be outputted to the .js
    For things like copyright notices.
###
Run Code Online (Sandbox Code Playgroud)

但是没有办法获得无缓冲的多行注释?

# This is the only way to mute
# multiple-lines
Run Code Online (Sandbox Code Playgroud)

谢谢.

Tre*_*ham 6

正确.但它不像它看起来那么困难,因为你的文本编辑器可能提供键盘快捷键来评论/取消注释行.例如,在带有jashkenas'bundle的TextMate中,您只需选择要评论的行并点击Cmd+/放在#每个行的前面.同样的快捷方式也可以以这种方式取消注释行.

  • 感谢您的回答,缺乏多行无缓冲评论的臭味.我也不认为`###'和```一样好,但我可能错了,但是`###`有时会给我压痕或者什么...... (2认同)