Metadata-Version: 2.0
Name: pygclip
Version: 0.0.5
Summary: Pygmentize to clipboard for macOS.
Home-page: https://github.com/brymck/pygclip
Author: Bryan Lee McKelvey
Author-email: bryan.mckelvey@gmail.com
License: MIT
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Requires-Dist: pygments
Provides-Extra: dev
Requires-Dist: coverage; extra == 'dev'
Requires-Dist: pytest (>=3); extra == 'dev'
Requires-Dist: tox; extra == 'dev'

#######
pygclip
#######

.. image:: https://travis-ci.org/brymck/pygclip.svg?branch=master
    :target: https://travis-ci.org/brymck/pygclip

:code:`pygmentize` to clipboard for macOS

This utility package is designed to send code through :code:`pygmentize` and save it as rich HTML in your macOS
clipboard. It can then be pasted easily into anything that accepts styled HTML input, such as Evernote, OneNote, Gmail,
etc.

.. image:: https://github.com/brymck/pygclip/assets/screenshot.png

*****
Usage
*****

:code:`pygclip` offers a couple ways to retrieve code for passing on to :code:`pygmentize`:

- From a file
- Via the standard input
- Pulling it from your clipboard

Examples below:

File
====

.. code-block:: python

    def foo():
        return 'bar'

.. code-block:: bash

    $ pygclip -s monokai -l python path/to/file.py

Standard input
==============

.. code-block:: bash

    $ pygclip -s monokai -l python
    def foo():
        bar()

Clipboard
=========

.. code-block:: bash

    $ pygclip -s monokai -l python -c


