Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing from FAQ: possibility of using Pygments #5

Open
ghost opened this issue Sep 12, 2017 · 0 comments
Open

missing from FAQ: possibility of using Pygments #5

ghost opened this issue Sep 12, 2017 · 0 comments

Comments

@ghost
Copy link

ghost commented Sep 12, 2017

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants