Pygmentize to clipboard for macOS.
pygmentize to clipboard for macOS
This utility package is designed to send code through
pygmentize and save it as rich HTML in your macOS
clipboard. It can then be pasted easily into anything that accepts styled HTML input, such as Evernote, OneNote, Gmail,
pygclip offers a couple ways to retrieve code for passing on to
From a file
Via the standard input
Pulling it from your clipboard
$ cat path/to/file.py def foo(): return 'bar' $ pygclip -s monokai -l python path/to/file.py
$ pygclip -s monokai -l python def foo(): bar()
$ echo "def foo():\n return 'bar'" | pbcopy $ pygclip -s monokai -l python -c
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for pygclip-0.0.8-py2.py3-none-any.whl