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

Uploaded Source

Built Distribution

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

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for pygclip-0.0.6.tar.gz
Algorithm Hash digest
SHA256 edb9b329ff7b1c1fc76a9f2d840a767e7b68cad1a0a8a519dd2036471bdecf7d
MD5 56aa21fe07efe3ecc83a9e4d48a31299
BLAKE2b-256 43c5c1b44a964e42f20b0e06cd20aed94270188fd00b9f202726a7a43d5b20be

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pygclip-0.0.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 02e475e44fac3df4a3841b85948083ce1486aa4f237a9c28541f4a5f49969d53
MD5 8dfe6f3424d5cd10da15ef90157cd6a5
BLAKE2b-256 dd16134334ab6f827c5b78525b4033944ef2257799816c9b3379c0bb811ad39c

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