Hallo,
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: 
> http://www.etsimo.uniovi.es/python/emacs/python-mode/faq.html
> 
> 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
everywhere:
  
  self.writeln('''<input type="text" width="25" value="Quotes">''')

is nicer than this, IMO:

  self.writeln("""<input type="text" width="25" value="Quotes">""")

ciao
-- 
 Frank Barknecht                               _ ______footils.org__


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Webware-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-devel

Reply via email to