W3C home > Mailing lists > Public > www-html@w3.org > July 2005

Re: code and blockcode

From: Karl Dubost <karl@w3.org>
Date: Mon, 11 Jul 2005 22:48:25 -0400
Message-Id: <06A12E73-2C1C-466C-9C47-0B53E365297E@w3.org>
To: XHTML-Liste <www-html@w3.org>

Le 05-07-11 à 14:34, Laurens Holst a écrit :

>> While this is probably in store, it would be a huge undertaking even
>> for one language. I've been reading the blogs of the IDE designers  
>> for
>> popular IDE's and it seems this is something that is very  
>> difficult to
>> do. Automatic formatting is akin to compilation for some languages  
>> (in
>> that you need to parse many files to see what are classes).
> Not necessarily, and for many languages it isn’t so hard. It  
> depends on what you consider ‘automatic formatting’. Actually,  
> I’d say it can often be easier than syntax highlighting.

That was one of the main drawback of the element "q" for quotes.

<q cite="urn:isbn:...">something here</q>

In HTML 4.01, the browser was supposed to implement the right quotes  
depending on the language detected by the browser.

lang="fr" -> « something here »
lang="en" -> “something here”
lang="ja" -> 「something here」

But it has never been implemented correctly. The best implementation  
I have seen so far of that is IE Macintosh version 5.

in XHTML 2.0, it has been removed in favor of letting the author to  
put himself the right system of quotes depending on his culture.

<quote cite="urn:isbn:…">« something here »</quote>

For programming languages, there will be the same kind of  
difficulties plus the fact that the number of programming languages  
keeps growing :)

Karl Dubost - http://www.w3.org/People/karl/
W3C Conformance Manager
*** Be Strict To Be Cool ***
Received on Tuesday, 12 July 2005 02:48:19 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:06:11 UTC