Re: <code> element and scripting languages

On 13 March 2015 at 18:19, Andrea Rendine <master.skywalker.88@gmail.com>
wrote:

> On the other hand, I had a funny experience some days ago while looking at
> an automated translation of a page in my language. This page contained PHP
> and JS code snippets, as well as a native scripting language. This means
> that it was full of control expressions such as "if ... else", "while",
> "function", "print" and so on.
> As you can easily imagine, these words in the snippet had been translated,
> thus making the snippets themselves useless.
>

Dear Skywalker,

translate is the attribute you are looking for
http://www.w3.org/TR/html5/dom.html#the-translate-attribute

Using HTML's translate attribute
http://www.w3.org/International/questions/qa-translate-flag

--

Regards

SteveF
HTML 5.1 <http://www.w3.org/html/wg/drafts/html/master/>

Received on Sunday, 15 March 2015 10:41:45 UTC