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.