D web site facelift

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sat Jul 3 12:01:40 PDT 2010


Walter Bright wrote:
> Walter Bright wrote:
>> Michel Fortin wrote:
>>> On a side note, I've noticed on other websites that Google 
>>> Translation doesn't attempt to translate code inside a <code> 
>>> element. So I would suggest the website uses <pre><code> ... 
>>> </code></pre> for its code blocks, and <code>...</code> for keywords 
>>> and other code-related terms in the text. That could actually make 
>>> the translation useful.
>>
>> This must be new, it didn't use to do that. I'll take advantage of it!
> 
> Sadly, it doesn't work, as it strips all the newlines out, putting your 
> code all on one line. Bah :-(

How about nesting them the other way around? <code><pre>...</pre></code>?

Andrei


More information about the Digitalmars-d-announce mailing list