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
$ 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b576142e44121d6dd7b6c804e766bb469da844b71eefa07361b3cc288fbec56
|
|
| MD5 |
1b63db9ad513d12d403c713772ad1e43
|
|
| BLAKE2b-256 |
1741494ae080a2d377dbb9b4bb30092f702255fed53f33ab0181d64bff17ca0d
|
File details
Details for the file pygclip-0.0.8-py2.py3-none-any.whl.
File metadata
- Download URL: pygclip-0.0.8-py2.py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03d101756ad68e3bc1f5f0d76b1c4ce3d1c455b83549d0089b45e9e01497f5d0
|
|
| MD5 |
3ecae982e5d6d462e96935fb5057ad0b
|
|
| BLAKE2b-256 |
a2faf614439c5dc5954f081cd1486de83cc375f36fa2fb469a3e8ceb5ce33f8a
|