code samples in blogger are a pain

I can't say I enjoy writing in the blogger post interface, in fact it's pretty frustrating. For a while there I was using google docs to write posts(which I loved), then I would just publish to my blog. That actually worked great until the actual publishing process which doesn't allow you to control the title very effectively and totally messed up my rss feed even if I did fix the title. Then I tried scribefire which again was really promising but it's a cramped UI and again the publishing process was really clunky for my workflow. (things remain drafts for me for weeks at a time)

Anyway, I'm looking at my last post and those code samples are embarrassingly poorly formatted. Not only that but if you check the source the blogger editor is introducing tons of html space entities which drives me nuts considering I'm using whitespace:pre on my blockquotes anyway.

I'm really inclined to just use the tools I have when it comes to this site, primarily so that I focus on writing and not tinkering. Since moving my website from a hosted environment to blogger I have actually started to focus again on my writing and my projects rather than tinkering with a wheel that's been built a thousand times (photo gallery scripts, php and perl cgi trickery for mundane templating etc). So while I will probably end up spending time on this at some point I really just want to find something that "just works" for showing code in blog posts. More to come I'm sure.

3 comments:

  1. Just found a syntax highlighter on google code that doesn't require any server side code etc... needs some styling but seems to do the trick!

    http://code.google.com/p/syntaxhighlighter/

    ReplyDelete
  2. Hey, I don't know if you are still interested, but I created an entry on how to use SyntaxHighlighter on Blogger:

    http://riveradev.blogspot.com/2008/12/public-static-void-main-string-args.html

    Cheers!

    ReplyDelete
  3. Thanks, that's a useful post. I ended up taking the embedded approach (contents of SyntaxHighlighter are now in my blogger template) just to avoid the extra HTTP call out. For a while I was running directly from the "raw file" link on google code, but it wasn't very fast.

    ReplyDelete