write code snippets in word documment

  • Thread starter Thread starter george chen
  • Start date Start date
G

george chen

try to write code snippets, .net code, java code, and sql code in a word
document without any of the extra word hidden characters. anyone to shed
some lights on.

thanks.
 
try to write code snippets, .net code, java code, and sql code in a word
document without any of the extra word hidden characters.  anyone to shed
some lights on.  

thanks.

If you save your code snippets in Word as .txt files, which hidden
characters do you see?

Yves
 
You might want to apply a style such as Plain Text or Macro Text to these
code snippets. Any "hidden" (i.e., nonprinting) characters you see are just
representations of spaces, tabs, and the like and will not print. They
represent the same ASCII characters that would normally be used in code.
 
But many code editors don't SHOW the tabs (just white space), and some
actually physically change tabs to multiple spaces while you edit.
Developers just aren't used to seeing "stuff" in their code. :-) (And
there's other "stuff" they are used to seeing, depending on their
environments.)

Dan
 
Back
Top