Calling Pygments with Pygments.highlight(code, :lexer => lang, :formatter => 'html', :options => {:encoding => 'utf-8', :linenostart => 2}) has no effect. Unfortunately I'm not very good at reading and understanding python code, but the option gets properly passed to Pygments::FFI.formatter_for
I'm currently working on a feature for an octopress plugin (https://github.com/imathis/octopress/pull/478). I need to pass the
linenostart
option to the formatter.Calling Pygments with
Pygments.highlight(code, :lexer => lang, :formatter => 'html', :options => {:encoding => 'utf-8', :linenostart => 2})
has no effect. Unfortunately I'm not very good at reading and understanding python code, but the option gets properly passed toPygments::FFI.formatter_for
Any idea what's going on?