[uf-discuss] Formating Code
Ryan King
ryan at technorati.com
Wed Nov 2 00:30:36 PST 2005
On Nov 1, 2005, at 7:00 PM, Jacob Ham wrote:
>> On Nov 1, 2005, at 2:43 PM, Ryan King wrote:
>>
>>> On Nov 1, 2005, at 11:27 AM, Jacob Ham wrote:
>>>
>>>> Is there really a need to use both 'pre' and 'code' elements?
>>>
>>> <code> == "this is code"
>>> <pre> == "the whitespace is significant"
>>>
>>> Different semantics, both often apply to source code (esp. Python).
>
> I think that you missed my point. If whitespace is part of the
> presentation (even if Python is based around it), we really don't need
> the 'pre' element.
But its not part of the presentation, its part of the structure/meaning.
> If there was a way to say this code is python,
> this code is java, and let whatever handles it OFF the browser do what
> it needs to do and let the browser (CSS) format it the way it likes.
Sure. But there's nothing wrong with reusing builtin, baseline
semantics of HTML, which have been available for over a decade.
> I will try to put up a brainstorm page tonight. It seems the more I
> look at it, the better that a microformat looks :-)
Brainstorming? Please take a look at http://microformats.org/wiki/
process before creating any wiki pages.
-ryan
--
Ryan King
ryan at technorati.com
More information about the microformats-discuss
mailing list