How can I format Java code in word document
java
Solution
Go to http://hilite.me/ and copy from the preview pane directly to word (tested with MS Word2007). Supports line numbering, but not well. Quite good for snippets.
Problem
I need to write a report which may contain some Java code pieces. I need the code to appear colored and line numbered. How can I do this ?