From: Stefan Lang Date: 2005-12-25T21:45:17+09:00 Subject: Re: Block comments syntax On Sunday 25 December 2005 12:53, Jonathan Leighton wrote: > Hello, > > It says at http://www.rubygarden.org/ruby?RubyFromC that I can do > block comment in Ruby like so: > > =begin > my comment > =end > > However, when I try to I get a syntax error. Why is this? How can I > do it? Two notes, since the RubyGarden page doesn't mention it: * Ensure that there is no space/tab before =begin and =end (i.e. the = must be the first character in the line) * Nesting of =begin/=end blocks is not possible. -- Stefan