[whatwg] <code> attributes

Jacob Rask jacob at jacobrask.net
Tue Apr 28 12:16:59 PDT 2009

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

More information about the whatwg mailing list