Wednesday, November 22, 2006 2:30 PM | rahel luethy | 1 comment(s)

syntax highlighting

the virus has left the building, so i happened to have a free evening yesternight. parts of it i spent integrating the dp.SyntaxHighlighter into this blog. it does exactly what it says on the tin: syntax highlighting (based on javascript/css).

so finally, i've escaped the eclipse → ksnapshot → gimp → flickr waterfall, and my recent enum code now looks like this:

loads of different, language-specific brushes are available, and it lets you fiddle around with the decorations (line-, column-numbering, tabbing, etc.).

to show just one more example, here's an XML snippet from yesterday's The Daily WTF post (it's titled "XML vs CSV : The Choice is Obvious" and it's hilarious, isn't it?):

5:43 PM | Anonymous Anonymous said...

That's nice. As for hilarious? More like familiar.....