[whatwg] <code> attributes

Michael A. Puls II shadow2531 at gmail.com
Tue Apr 28 19:21:14 PDT 2009

On Tue, 28 Apr 2009 15:16:59 -0400, Jacob Rask <jacob at jacobrask.net> wrote:

> Hi,
> has there ever been any discussion on including an attribute to the
> code element, specify the programming language in the markup? If so,
> what was the conclusion? I didn't find anything in the list archives.
> If not, I believe it would be a very good idea. Browsers could for
> instance have default color codings for different languages, open
> selected code/text in an editor associated with that language, etc...
> -- Jacob Rask


For example:
<code class="language-python"></code>


More information about the whatwg mailing list