20 February 2008

Posting Code in Blogs

Until the previous post, I'd been hand-converting code samples into HTML for blog entries. Incredibly tedious. Amazingly tedious.

Now I have a tool that does it all for me: Colorer-take5. It integrates with the Eclipse development environment and works like a charm. I just grab the HTML it generates, stick it in <div> and <pre> tags like so:

<div style="color:#AAAAAA; background-color:#0000AA; font-size: small; width: 400px; overflow: auto; padding: 1em"><pre>
<!-- generated HTML -->
</pre></div>


Bam, done. And it's free!

Now I just have to figure out how to make my own coloring scheme.....

No comments:

Post a Comment

Post a Comment