title: Pygments syntax highlighting in Jekyll without starting a <div>
body: <p>If you use Jekyll with the Pygments syntax-highlighting package, it’s possible to write</p>
  
  <pre><code>{% highlight clojure %}
  (def something :foobar)
  {% endhighlight %}
  </code></pre>
  
  <p>which produces a <code>&lt;div&gt;</code> containing that line, syntax-highlighted according to Clojure syntax. But is there a way to get the syntax highlighting in the middle of a paragraph? I’d like to be able to write</p>
  
  <pre><code>In Clojure, keywords like {% highlight clojure %}:foobar{% endhighlight %}
  are prepended by colons.
  </code></pre>
  
  <p>The desired behavior here is that the Clojure keyword would be highlighted using the same style as was used for the keyword in the first example.  When I try to do this, though, it just produces a <code>&lt;div&gt;</code> like before. (And maybe this is specific to the Kramdown markdown engine I’m using, but the div tag itself is HTML-escaped so that you can see “&lt;div&gt;” right there in the generated text.)</p>
  
  <p>Is there a way to get Jekyll/Pygments to do “inline” syntax highlighting like this?</p>