This project has been archived by its maintainers, and is no longer receiving any updates.
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
HTMLrich 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).
Metadata
Release files for colorsnip 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| colorsnip-0.1.3.tar.gz | 3.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| colorsnip-0.1.3-py3-none-macosx_10_13_x86_64.whl | Python 3 | none | macOS 10.13+ x86-64 | Details |
Total release size: 7.4 kB
Release files / colorsnip-0.1.3.tar.gz
| Download URL | colorsnip-0.1.3.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
42add1cb5bdd1d676b9f0666de2517c94f616ab6160ba04a4a90c2984f202aae
|
|
BLAKE2b-256 checksum How to use checksums |
700f5e832c1274a4a31fd6a3f51c2edc6064d9485ad08ad5bb0fbcb8fff91f81
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0
|
Release files / colorsnip-0.1.3-py3-none-macosx_10_13_x86_64.whl
| Download URL | colorsnip-0.1.3-py3-none-macosx_10_13_x86_64.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 macOS 10.13+ x86-64 |
|
SHA-256 checksum How to use checksums |
486278d935d62a67444bf3b7237d8e6abfaf337761a2926796fc15736068a1d2
|
|
BLAKE2b-256 checksum How to use checksums |
9c44e1cd2027d7f53c90ce2b88a2033bedae28a6b4c7ee16469555327a5c888d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0
|