Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

colorsnip

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

colorsnip

"Colorize snippets and copy to rich text clipboard"

  • 0.1.3
  • PyPI
  • Socket score

Maintainers
1

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:

  • MacOS via richxerox
  • Linux and Windows (untested) via klemboard
$ 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).

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc