halirutan / Wolfram-Language-IntelliJ-Plugin-Archive

Wolfram Language and Mathematica plugin for IntelliJ IDEA.
https://wlplugin.halirutan.de/
Other
193 stars 26 forks source link

Pretty printing/exporting of Mathematica code #41

Open halirutan opened 8 years ago

halirutan commented 8 years ago

The copy-on-steroids plugin rocks like hell, because you can copy and past source code as RTF or HTML with all highlighting included. If we could work this logic into the Mathematica plugin, you could export fully highlighted and indented Mathematica code (probably as PDF for publications).

Unfortunately, in its current state the copy-on-steroids don't work with the Mathematica plugin.

kubaPod commented 8 years ago

closely related: How to convert a notebook cell to a string retaining all formatting, colorization of identifiers etc?

szhorvat commented 7 years ago

This works on Mac. There's Edit -> Copy and Edit -> Copy as Plain Text. When copying as normal text, I can paste into rich text documents in TextEdit.app (not in all apps)

image