W3C home > Mailing lists > Public > public-html-comments@w3.org > March 2015

Re: <code> element and scripting languages

From: Michael A. Peters <mpeters@domblogger.net>
Date: Fri, 20 Mar 2015 13:32:35 -0700
Message-ID: <550C83E3.3080501@domblogger.net>
To: public-html-comments@w3.org


On 03/20/2015 01:10 PM, Andrea Rendine wrote:
> I think it'd be too much for me, as I don't even know if anybody would
> use such an attribute to identify programming language (and I guess it
> wouldn't happen)
> And anyway... a formal standardisation for scripting languages, as new
> ones are often created, I don't know how easy it would be. Not enough
> for me alone, again.

How about using the extension (if any) that would normally be associated 
with the language?

e.g. <code plang="cpp">#define WIN32_LEAN_AND_MEAN</code>

That's what many text editors go by when determining the language.
Received on Friday, 20 March 2015 20:32:59 UTC

This archive was generated by hypermail 2.3.1 : Friday, 20 March 2015 20:32:59 UTC