"Colorize snippets and copy to rich text clipboard"
Project description
ColorSnip
Command line tool: Copies the content of the given file (or stdin) to the clipboard with syntax coloring, so it can be pasted into a format-retaining software.
Installation
Compatible with:
$ pip install colorsnip
Usage:
$ colorsnip [filename|-]
Use case
Pasting formatted code for a presentation in Keynote or the like.
If you want to access the HTML
/RTF
content directly, use pygments
and the CLI tool
pygmentize
that it provides.
Caveats
- richxerox dependency seems to install half of PyPI
- Untested on Linux and Windows
- Linux and Windows get the
HTML
rich text format only, while MacOS get HTML and RTF.
License
MIT (see top of code file)
Code of conduct
This project follows the contributor covenant.
For any feedback, contact the author via an issue, or twitter or by email (first name at last name dot fr).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
colorsnip-0.1.2.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for colorsnip-0.1.2-py3-none-macosx_10_13_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57a236cbf7a2b72e5a713801eefd96b6935922765610d2ee1647d59ab694153b |
|
MD5 | 89196f714d5a111a95a30dea2519e583 |
|
BLAKE2b-256 | ec43f258256b63c0a1af6426241a5e08181a290e4f80e5c5153286c6a9a3fc88 |