Skip to main content

"Colorize snippets and copy to rich text clipboard"

Project description


PyPI version GitHub version

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.


Compatible with:

$ pip install colorsnip


$ 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.


  • 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.


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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for colorsnip, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size colorsnip-0.1.3-py3-none-macosx_10_13_x86_64.whl (3.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size colorsnip-0.1.3.tar.gz (3.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page