copy-with-style

Copy file or selected code as HTML, including the Atom syntax highlighting colors, to clipboard.

Jonas Schubert Erlandsson

14,966

6

1.4.0

MIT

GitHub

Copy with style!

Ever which you could just copy the code from your editor into document or presentation, WITH the syntax highlighting? Well, now you can!

Demo where code is copied from Atom into Google docs with the syntax highlighting preserved.

Options

You can create presets in the settings, up to three of them, available using alt+a 1 - alt+a 3. A preset is a named combination of:

This gives you pretty free reign as to how you want to consume the result. I use it with a simple ruby script to get the proper format on the clipboard in OS X to paste correctly into Google docs.

Take a look at the repository Wiki for that script. Feel free to contribute with your own creations as well.