From: William Djaja Tjokroaminata Date: 2002-09-17T05:12:11+09:00 Subject: Re: comments and continuing strings on the next line Hi, I don't know whether it is different, but it seems this format also works, although with more punctuations: foo = %Q!\ this is a string #{#some comment}\ that is continued on a second line ! Regards, Bill =========================================================================== Paul Brannan wrote: > I have a tendency to write: > foo = > "this is a string " \ > "that is continued on a second line" > I'd like to write: > foo = > "this is a string " # this is a comment \ > "that is continued on a second line" > but this doesn't work (I only get the second part of the string and the > first part is ignored). And: > foo = > "this is a string " \# this is a comment > "that is continued on a second line" > is a syntax error. > I could write: > foo = > "this is a string " + # this is a comment > "that is continued on a second line" > but that is slightly different from the original example. Any ideas? > Paul