Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

BBCode Contest

Name: BBCoder 2009-10-12 2:21

Use the most clever BBCode formatting you can think of to render this line of text:

I conjure the spirits of my computer with BBCode!

Example entry:

I conjure the spirits of my computer with BBCode!

I'm sure you can do much better because I don't even have fancy macros/scripts to do it for me.  Bonus points for including the source-code with your entry.  Most creative entry wins!

Name: Anonymous 2009-10-12 4:00

Here's what I did instead:

(defun write-tag (tag s)
  (format nil "[~a]~a[/~a]" tag s tag))

(defun fancy-format (s)
  (write-tag "m"
    (with-output-to-string (o)
      (loop for c across s
         do (princ (case c
                     ((#[b]([/b] #[b])[/b]) (write-tag "b" c))
                     (t c))
             o)))))

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List