Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.
/ copy-with-style Public archive

An Atom package that allows you to copy syntax highlighted code to the clipboard.

License

Notifications You must be signed in to change notification settings

accodeing/copy-with-style

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚠️ Given that Github has officially decided to shut down Atom, and that the publishing of new versions of packages hasn't worked for over 6 months, I'm not going to maintain this addon. If anyone would like to maintain it for the remaining Atom audience I'd be happy to transfer ownership of the project.

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:

  • Output format, RTF or HTML.
  • Font face and size.
  • Background color.
  • Optional external command, if not provided it will fall back to the default behaviour and copy the result to the clipboard.

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.