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.
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.4.tar.gz
(89.2 kB
view hashes)
Built Distribution
Close
Hashes for pygclip-0.0.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f60d4d0ea4bb1a15c404256cb0a928cc5509f110d1d1caede3c16901f79b2c5c |
|
MD5 | 069ea84a1e670fa919523d62bc8d1ff2 |
|
BLAKE2b-256 | 208ae3391e9847e9aec92e56c1c375452a8d176c4dfcb593a6447be4a5d32866 |