If you use Jekyll with the Pygments syntax-highlighting package, it’s possible to write
{% highlight clojure %} (def something :foobar) {% endhighlight %}
I think that you can use the nowrap option to prevent Pygments from wrapping the code in a div tag. So your example would become:
nowrap
div
In Clojure, keywords like {% highlight clojure nowrap %}:foobar{% endhighlight %} are prepended by colons.
{% highlight clojure nowrap %}:foobar{% endhighlight %}