Skip to main content

Pygmentize to clipboard for macOS.

Project description

https://travis-ci.org/brymck/pygclip.svg?branch=master

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.

https://github.com/brymck/pygclip/raw/master/assets/screenshot.png

Usage

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:

File

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

Standard input

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

Clipboard

$ 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.

Source Distribution

pygclip-0.0.8.tar.gz (88.5 kB view details)

Uploaded Source

Built Distribution

pygclip-0.0.8-py2.py3-none-any.whl (7.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pygclip-0.0.8.tar.gz.

File metadata

  • Download URL: pygclip-0.0.8.tar.gz
  • Upload date:
  • Size: 88.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pygclip-0.0.8.tar.gz
Algorithm Hash digest
SHA256 6b576142e44121d6dd7b6c804e766bb469da844b71eefa07361b3cc288fbec56
MD5 1b63db9ad513d12d403c713772ad1e43
BLAKE2b-256 1741494ae080a2d377dbb9b4bb30092f702255fed53f33ab0181d64bff17ca0d

See more details on using hashes here.

File details

Details for the file pygclip-0.0.8-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pygclip-0.0.8-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 03d101756ad68e3bc1f5f0d76b1c4ce3d1c455b83549d0089b45e9e01497f5d0
MD5 3ecae982e5d6d462e96935fb5057ad0b
BLAKE2b-256 a2faf614439c5dc5954f081cd1486de83cc375f36fa2fb469a3e8ceb5ce33f8a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page