Skip to main content

Pygmentize to clipboard for macOS.

Project description

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, etc.


pygclip offers a couple ways to retrieve code for passing on to pygmentize:

  • From a file
  • Via the standard input
  • Pulling it from your clipboard

Examples below:


$ cat path/to/
def foo():
    return 'bar'
$ pygclip -s monokai -l python path/to/

Standard input

$ pygclip -s monokai -l python
def foo():


$ echo "def foo():\n    return 'bar'" | pbcopy
$ pygclip -s monokai -l python -c

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
pygclip-0.0.8-py2.py3-none-any.whl (7.3 kB) Copy SHA256 hash SHA256 Wheel 3.6
pygclip-0.0.8.tar.gz (88.5 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page