Printing/Exporting colorized sourcecode

For my Mathematica Plugin I want to have the feature of printing or exporting the highlighted and indented code, since this is not supported by Mathematica itself. The color-printing supported by IDEA does not include all the annotations. Since most of the fancy stuff is done through annotations, it is crucial for me that I can export this coloring too.

What is the best way to create an annotated version of a source-file? For instance I could easily create HTML when I would have access to all text-annotations as they are displayed in the editor.

Thanks
Patrick

2 comments
Comment actions Permalink

Unfortunately I don't know the specifics of this. However, Denis Zhdanov has a plugin that may be useful to look at, as it offers HTML + RTF support for copying source code - https://github.com/denis-zhdanov/intellij-plugin-copy-on-steroids

0
Comment actions Permalink

I will take a look at it and report back.

Many thanks
Patrick

0

Please sign in to leave a comment.