W3C home > Mailing lists > Public > public-html@w3.org > July 2007

Re: <code type="...">

From: Thomas Broyer <t.broyer@gmail.com>
Date: Mon, 2 Jul 2007 20:58:35 +0200
Message-ID: <a9699fd20707021158pab8338cn11d8bf3d732e74f0@mail.gmail.com>
To: public-html@w3.org

2007/7/2, Daniel E. Renfer:
> If all my <code> blocks are marked up appropriately, I could easily do
> searches for snippets of code in my posts in javascript. (//code[@type
> = "text/javascript"])

...or with Google Code Search [1] ;-)

The problem is that not all programming languages or machine-readable
languages have a media type (actually only a very few ones have:
text/css, text/html, application/ecmascript, application/json,
model/vrml, application/smil, XML types and that's almost all, at
least if we restrict the list to registered media types: lisp is known
as application/x-lisp, latex is application/x-latex, Troff is known as
application/x-troff but man-pages are application/x-troff-man, etc.)

[1] http://www.google.com/codesearch

Thomas Broyer
Received on Monday, 2 July 2007 18:58:43 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:15:23 UTC