Here''s one stupid question: How do you comment out a block of ruby code? I know that "#" comments one line, but how do i comment out a block of 7-8 lines of code? Don''t seem to be able to find this anywhere. Thanks, Gabor --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Jun 6, 2007, at 2:10 PM, gabordemeter wrote:> Here''s one stupid question: > > How do you comment out a block of ruby code? > > I know that "#" comments one line, but how do i comment out a block of > 7-8 lines of code? Don''t seem to be able to find this anywhere.There is no block comment, but some editors support easy multi-line commenting In TextMate, for instance, it''s the menu item Bundles>Source>Comment Selection. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
There is block commenting: =begin stuff to get commented =end The tokens have to be flush to the left. Jason On 6/6/07, George Bailey <listcatcher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > On Jun 6, 2007, at 2:10 PM, gabordemeter wrote: > > Here''s one stupid question: > > > How do you comment out a block of ruby code? > > > I know that "#" comments one line, but how do i comment out a block of > > 7-8 lines of code? Don''t seem to be able to find this anywhere. > > > > There is no block comment, but some editors support easy multi-line > commenting > In TextMate, for instance, it''s the menu item Bundles>Source>Comment > Selection. > > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Sweet! I just tried in SciTE and for it, it appears the ''begin'' is opional but the ''end'' is required. stuff to get commented =end Thanks Jason! On 6/6/07, Jason Roelofs <jameskilton-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > There is block commenting: > > =begin > stuff to get commented > =end > > The tokens have to be flush to the left. > > Jason > > On 6/6/07, George Bailey <listcatcher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > On Jun 6, 2007, at 2:10 PM, gabordemeter wrote: > > > > Here''s one stupid question: > > > > > > How do you comment out a block of ruby code? > > > > > > I know that "#" comments one line, but how do i comment out a block of > > > > 7-8 lines of code? Don''t seem to be able to find this anywhere. > > > > > > > > There is no block comment, but some editors support easy multi-line > > commenting > > In TextMate, for instance, it''s the menu item Bundles>Source>Comment > > Selection. > > > > > > > > > > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thanks Jason! Really useful to know this. Best, Gabor Jason Roelofs wrote:> There is block commenting: > > =begin > stuff to get commented > =end > > The tokens have to be flush to the left. > > Jason > > On 6/6/07, George Bailey <listcatcher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > On Jun 6, 2007, at 2:10 PM, gabordemeter wrote: > > > > Here''s one stupid question: > > > > > > How do you comment out a block of ruby code? > > > > > > I know that "#" comments one line, but how do i comment out a block of > > > > 7-8 lines of code? Don''t seem to be able to find this anywhere. > > > > > > > > There is no block comment, but some editors support easy multi-line > > commenting > > In TextMate, for instance, it''s the menu item Bundles>Source>Comment > > Selection. > > > > > > > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---