How to print folded javascript code as shown in the editor

已回答

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

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

0

请先登录再写评论。