Skip to main content

"Colorize snippets and copy to rich text clipboard"

Project description

ColorSnip

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.

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


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.3.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

colorsnip-0.1.3-py3-none-macosx_10_13_x86_64.whl (3.8 kB view details)

Uploaded Python 3macOS 10.13+ x86-64

File details

Details for the file colorsnip-0.1.3.tar.gz.

File metadata

  • Download URL: colorsnip-0.1.3.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for colorsnip-0.1.3.tar.gz
Algorithm Hash digest
SHA256 42add1cb5bdd1d676b9f0666de2517c94f616ab6160ba04a4a90c2984f202aae
MD5 4a682fde20e2a6a18ee87740d28a7326
BLAKE2b-256 700f5e832c1274a4a31fd6a3f51c2edc6064d9485ad08ad5bb0fbcb8fff91f81

See more details on using hashes here.

File details

Details for the file colorsnip-0.1.3-py3-none-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: colorsnip-0.1.3-py3-none-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3, macOS 10.13+ x86-64
  • Uploaded using 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

File hashes

Hashes for colorsnip-0.1.3-py3-none-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 486278d935d62a67444bf3b7237d8e6abfaf337761a2926796fc15736068a1d2
MD5 a925d282bae29fd0b8ee8641884ef9d2
BLAKE2b-256 9c44e1cd2027d7f53c90ce2b88a2033bedae28a6b4c7ee16469555327a5c888d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page