Best way to show code snippets in word?
go to “insert” tab, click “object” button (it’s on the right)
choose “openDocument Text”: it will open a new embedded word document
copy past your code from Visual Studio / Eclipse inside this embedded word page
save and close
Go upvote this answer.