Skip to content

missing from FAQ: possibility of using Pygments #5

Description

The Pygments syntax highlighter apparently has support for multiple formatters including ImageFormatter for PNG output.

It would be helpful to others to mention it, since you're already mentioning other tools and their pros/cons.

sudo pip install pygments Pillow
pygmentize -O font_name='Andale Mono',line_numbers=false,font_size=16 -o whatever.png /path/to/file

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions