What are you using (free) to format your C # code?
If you copy your code from Visual Studio and paste it into Word, the syntax highlighting is preserved.
Alternatively, you can take a look at the Copy Source As HTML add-in.
source to share
try Artistic Style 1.22, http://astyle.sourceforge.net/
it is easy to use, has 3 or 4 predefined styles and is customizable.
source to share
Use some sort of tabs-to-spaces feature, and make sure a font monospaced
(like a typewriter or console) is used for printing or email .
I'm pretty sure VisualStudio has a (slightly well-hidden) feature to convert tab padding to spaces and vice versa.
I usually use vim where you can use:
:set expandtab
:%retab
to replace tabs with spaces and:
:set noexpandtab
:%retab
to replace spaces with tabs.
Spaces are better for email, etc., because no one can agree on the length (in spaces) of the tab.
source to share