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

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

Standard input

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

Clipboard

$ 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.7.tar.gz (89.2 kB view details)

Uploaded Source

Built Distribution

pygclip-0.0.7-py2.py3-none-any.whl (7.2 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for pygclip-0.0.7.tar.gz
Algorithm Hash digest
SHA256 7a3d064a1488f98e477b3df4a7b2848d4d740bf1c0a8be7dbcab79fe7ac34fad
MD5 05836c4691abf8f4c2220524a97b3ad8
BLAKE2b-256 4c98fcf99364c0357e5e30e00d69afc0a7c4d1307c4f6722d7f00d0b926ff7a6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pygclip-0.0.7-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4d1ed37e12c4a965f5697ac365b057251e7d3e418a3e5d1d5b2f3a77bed84a64
MD5 f772c5a0608e51e6d74d61e186433534
BLAKE2b-256 013ef509fe6891acac3b85412d5fa97e098b7d6eb14b44d47fc74890e1e81f20

See more details on using hashes here.

Supported by

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