Stuart Donaldson hat gesagt: // Stuart Donaldson wrote:
> What is the reason for this direction? Editors like Emacs have
> difficulty with the syntax highlighting when the number of quotes don't
> match up.
> An example of the problem is:
> '''Here is some tripple sinqle quote text that's got an embedded
> single quote.'''
If Emacs fails, it is certainly buggy: this looks just fine in Vim.
> From this quote on, Emacs syntax highlighting is in string mode. so
> code appears highlighted as a string. For more info see:
> Anyway, I would contend that using a single quote for punctuation is
> much more common than having lone double-quotes in the text, and
> therefore a reasonable solution would be to use the tripple-double-quotes.
I don't know, if Emacs could cope with that, but I suspect, that this
could even do more harm. In literary text, you might have the
occacional single quote, but in Webware texts, double quotes are much
more common. I mean, we're dealing HTML here, where double quotes are
self.writeln('''<input type="text" width="25" value="Quotes">''')
is nicer than this, IMO:
self.writeln("""<input type="text" width="25" value="Quotes">""")
Frank Barknecht _ ______footils.org__