FG
💻 Software

How do I add formatted code to a Microsoft Word document?

Fresh5 days ago
Mar 15, 202659452 views
Confidence Score0%
0%

Problem

I need to write a document in MS-Word 2007 that contains a lot of examples of VB.NET and C# code. What is the best way of getting the code to look reasonable in the document? What styles etc do people use? (I do not have time to hand edit/format the code, and would be very happy if it just looked t…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How do I add formatted code to a Microsoft Word document?

Low Risk

You may use source highlighting services and copy / paste to Word document. I think it will be the fastest way (upd. simple copypaste from VS will also works). The second way is to create a style for code block, save it and then apply to all code bl…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment