How to print folded javascript code as shown in the editor

Answered

I would like to print javascript as shown in it's folded state. The purpose is the same as for folding in the editor, to suppress detail (and save paper).

Can any one give me some hints on how to approach creating a plugin for this functionality?

Thanks.

0
1 comment

You'll need to create your own version of com.intellij.codeEditor.printing.TextPainter class (see also PrintAction/PrintManager classes).

0

Please sign in to leave a comment.