This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to get Java code into a Word document

 
Thomas Hawk
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a number of Java source files that I need to include in a technical document (MS Word format). Is there a tool that will take all the source files for a project and either create a new word document or import them into an existing word document? I would like to preserve the original source code formatting and it would be great if file name headings were automatically added to the word document, though I can live without this latter capability. Thanks for any help you all can provide.
 
Paul Clapham
Sheriff
Pie
Posts: 20763
30
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am fairly certain you could write a Word macro to get all the files with a certain extension in a certain directory and format them any way you liked.
 
Guru dhaasan
Ranch Hand
Posts: 126
Java Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can use some extenral utilities like textpad and then try to copy form there to word
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic