Wordpress Plugin for Code Formatting

I like to post code periodically in my blog entries, but I haven’t found a satisfactory way to do it until now. If you use “code” tags, you wind up killing your indentation. I’ve been using “pre” tags, but they’re not really optimal. Luckily, Scott Reilly has solved this problem with a Wordpress plugin for preserving code formatting. The idea is to take code that looks would normally format like this:

(defun foo (bar)
(dolist (thing bar)
(format t "~a~%" thing)))

And let you use preserve the indentation so you can get this:

(defun foo (bar)
(dolist (thing bar)
(format t "~a~%" thing)))

Very nice and useful. Thanks Scott!

Leave a Reply

This is a captcha-picture. It is used to prevent mass-access by robots. (see: www.captcha.net)

You must read and type the 5 chars within 0..9 and A..F, and submit the form.

  

Oh no, I cannot read this. Please, generate a