Right now only linenos can be passed to Pygments. I built a small patch for the highlight tag allowing general passing of options to Pygments. This can be used e.g. for startinline for PHP code.
Could you give an example of how this works?
For example using startinline will cause PHP code to get highlighted without the need for <?php ?>.
<% highlight php linenos startinline %>
$inline = true;
echo "This is inline PHP code.";
<% endhighlight %>
will result in highlighted PHP code and line numbers.
There are several other options, most of them are boolean. So the value defaults to true if an option is set. But you can also use e.g. encoding=utf-8 or tabsize=2.
Solid! I was about to start a patch that would let me set linenostart in my highlighted code, but this looks like it would do exactly what I need.
This patch looks good. As a feature addition it will go into 1.1.
The changes now reside in koraktor/jekyll@pygments-options.
Changed my mind. This is merged in master and going in the next release.
update history for #31
Has this been included in latest Jekyll release ? I am wondering because the issue status stays "Pending"