Syntax highlighting in Word?

Soldato
Joined
19 Dec 2007
Posts
2,663
Location
Newton Aycliffe
Hi all.

Does anyone know of an easy way to copy syntax highlighting into word? I am doing a module on Java for a course and need to hand in lots of code (along with other stuff) in word documents.

When I copy this into word it obviously doesn't copy across the colour coded syntax highlighting, does anyone know of a good way to do this without going though the code and formatting each separate section?
 
Visual Studio to Word keeps syntax highlighting so it's probably just your editor.

Try printing the code as PDF (if it retains colour) then copy/paste from the PDF to word (or just append the PDF in an appendix).
 
I think I have access to Visual Studio through msdn:aa, so may copy into that and then from there into word... otherwise i'll give PDFs a try

Unfortunately all the course materials are done in BlueJ so I am stuck with using it really for screenshots etc.

Thanks
 
Using Notepad++ go Plugins > NppExport > Copy all formats to clipboard

You can then paste into Word with all the formatting.
 
Back
Top Bottom