Print the sourcecode of a whole java project

后端 未结 8 1463
栀梦
栀梦 2021-01-30 02:23

I have to print the whole sourcecode of a java-project. The final version should look like: Eclipse: File -> Print. But with this function you can only print on

8条回答
  •  时光取名叫无心
    2021-01-30 02:58

    An option that looks fancy is to use vim in batch mode to generate a bunch of colorized HTML files and then print by dragging all of them to the printer (I know that can be done, some time ago a colleague printed the whole J2SE API, and I hope she didn't it page by page xD).

    find -name "*.java" -exec vim '+set nu' +TOhtml +wq +q '{}' \;
    

提交回复
热议问题