Link to home
Start Free TrialLog in
Avatar of IT Guy
IT GuyFlag for United States of America

asked on

Insert code into Word using Experts Exchange format

Does Microsoft Word have any way where code can be inserted in a format like the format shown below?

I often need to document code within Word 2016 documents and would prefer to document it in the same or a similar form to how code can be inserted into Experts Exchange postings:

If so how can this be done?

net stop wuauserv
net stop cryptsvc
net stop bits
net stop msiserver
rd c:\windows\softwaredistribution.old /s /q
rd c:\windows\system32\catroot2.old /s /q
ren c:\windows\softwaredistribution softwaredistribution.old
ren c:\windows\system32\catroot2 catroot2.old
Net start wuauserv  
net start cryptsvc
net start bits
net start msiserver

Open in new window

Avatar of John
John
Flag of Canada image

I think the easiest way would be to have a different, numbered Word Style with a different (normal) font and use that for a "paragraph of code". Put a space before and after the paragraph to set it apart.
ASKER CERTIFIED SOLUTION
Avatar of Joe Winograd
Joe Winograd
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial