Generating Pygment test files - mhulse/mhulse.github.io GitHub Wiki

# Create a test file in desired location with code you want to highlight.
# I'm using `virtualenvwrapper` with `pygments`, so:
$ workon jekyll_pygments
# Creates `test.html`, with line numbers:
$ pygmentize -f html -O style=monokai,linenos=1 -l css test.css > test.html
# No line numbers:
$ pygmentize -f html -O style=monokai -l css test.css > test.html