Alex Rivera | Logout

Syntax highlighting in MS Word document

Asked 2010-03-31T22:15:54.413
35

I want to insert some C/C++ source code into a Microsoft Word document. I have no problem in copying the code from source file and pasting into Word. I can do fixed-width. But, in Word, I see the code in black-and-white format; I loose the syntax highlighting as I get in the source code editor (for me, gvim). So, my question is, is there any way to do syntax highlighting of C/C++ source code in MS Word?

Edit
Report

1 Answer

1

If you have Eclipse CDT or Visual around they do it automatically for you when you paste code to Word (Or similiar). I assume it's not best solution for a gvim guy, but still. Just so you'll know.

answered 2010-03-31T22:29:20.267

Your Answer