lucasmazza / copy-as-rtf

A package to export highlighted code as RTF
Other
19 stars 14 forks source link

Copy the real rtf based on theme #23

Closed agiuliano closed 8 years ago

agiuliano commented 8 years ago

Hi, I noticed that if I install a syntaxt theme, the copy is made based on I-don't-know-what syntax highlight. Is that normal?

steak3 commented 8 years ago

Yes, it is "normal" (at least on Windows... are you on Windows?)

Here is the workflow:

So if you want the same highlight, you can try to set the same style in the Copy-as-RTF package settings as the Atom theme. The default style is "tango". Here you can check which "result" style suits you better: https://help.farbox.com/pygments.html

agiuliano commented 8 years ago

thanks for your reply @steak3 I'm on a mac. I was trying to copy code with a github syntax theme that isn't available for pygments :(

steak3 commented 8 years ago

Oh I see, it is too bad. Then I guess it is more a pygments issue?

Well, the spirit of this package is: If it is only for emailing or presenting, it is not mandatory to have the exact same highlighting of your atom theme, right? You could just only need a code-like syntax different of Time New Roman :smiley_cat:

agiuliano commented 8 years ago

You're right, I chose github style 'cause it's the clearest for presenting. BTW I think you can close this many thanks