Block commenting in Gedit?

前端 未结 8 1265
一生所求
一生所求 2020-12-23 09:18

Is there a way to comment out a chunk of highlighted code?

I am programming in ruby, and I hate putting # on lines individually.

8条回答
  •  醉酒成梦
    2020-12-23 09:49

    Just use a multi-line comment.

    Example:

    =begin
    Anything between a line consisting only of =begin
    and a line consisting only of =end
    is treated as a comment.
    =end
    

提交回复
热议问题