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|-]
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)
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).