[uf-discuss] code microformat

Scott Reynen scott at randomchaos.com
Wed Jan 31 06:59:45 PST 2007


On Jan 31, 2007, at 6:00 AM, Colin Barrett wrote:

> On Jan 30, 2007, at 7:55 AM, Ciaran McNulty wrote:
>
>> On 1/30/07, anders conbere <aconbere at gmail.com> wrote:
>>> I would consider the rss and atom tools be not in accordance with  
>>> the
>>> (x)html specs on this one.  And I believe that muddying the code  
>>> with
>>> non-semantic tags makes is much more difficult to digest.
>>
>> I'd argue that <br /> does have semantics for a number of  
>> languages, actually!
>
> I would speculate, however, that most existing examples of code  
> snippets are using <pre>. Adding <br />s is a lot of work if you're  
> editing by hand.

For what it's worth, PHP's syntax highlighting (which I use to share  
source code) automatically adds <br /> (or <br> in older versions)  
for line breaks:

http://www.php.net/highlight_string

Peace,
Scott



More information about the microformats-discuss mailing list